Hi all,
Currently I have been given the task to error check a file generated via an Informix Database. Basically if fields 6 to 11 (Seprated by ';') are blank then I need to strip these lines to a file. But leave any un-erronous lines in the original file. Here is some example data:
1).. This part is correct and does not needed stripping out.
1;0045;NORTHAMPTON;09/12/2004;mrs;marge;simpson;1;Some Street;Springfield;;SP11A
A;marge.simpson@simpsons.com;01270555111;;0794646464;09/12/2004;639639639639639;
Some MakeModel;;Poor;TMobile;K1089;K1121;;;;;;;Absolutely goosed;N;;ABC1;DEF2;10
/12/2004;
2).. This part is incorrect as 'marge' is missing.
2;0046;NORTHAMPTON;09/12/2004;mrs;;simpson;1;Some Street;Springfield;;SP11A
A;marge.simpson@simpsons.com;01270555111;;0794646464;09/12/2004;639639639639639;
Some MakeModel;;Poor;TMobile;K1089;K1121;;;;;;;Absolutely goosed;N;;ABC1;DEF2;10
/12/2004;
3).. This file is incorrect as both 'marge' and 'simpson' are missing.
2;0046;NORTHAMPTON;09/12/2004;mrs;;;1;Some Street;Springfield;;SP11A
A;marge.simpson@simpsons.com;01270555111;;0794646464;09/12/2004;639639639639639;
Some MakeModel;;Poor;TMobile;K1089;K1121;;;;;;;Absolutely goosed;N;;ABC1;DEF2;10
/12/2004;
Does anyone have any ideas?
Thanks.
( "To become Wise, first you must ask Questions"
Currently I have been given the task to error check a file generated via an Informix Database. Basically if fields 6 to 11 (Seprated by ';') are blank then I need to strip these lines to a file. But leave any un-erronous lines in the original file. Here is some example data:
1).. This part is correct and does not needed stripping out.
1;0045;NORTHAMPTON;09/12/2004;mrs;marge;simpson;1;Some Street;Springfield;;SP11A
A;marge.simpson@simpsons.com;01270555111;;0794646464;09/12/2004;639639639639639;
Some MakeModel;;Poor;TMobile;K1089;K1121;;;;;;;Absolutely goosed;N;;ABC1;DEF2;10
/12/2004;
2).. This part is incorrect as 'marge' is missing.
2;0046;NORTHAMPTON;09/12/2004;mrs;;simpson;1;Some Street;Springfield;;SP11A
A;marge.simpson@simpsons.com;01270555111;;0794646464;09/12/2004;639639639639639;
Some MakeModel;;Poor;TMobile;K1089;K1121;;;;;;;Absolutely goosed;N;;ABC1;DEF2;10
/12/2004;
3).. This file is incorrect as both 'marge' and 'simpson' are missing.
2;0046;NORTHAMPTON;09/12/2004;mrs;;;1;Some Street;Springfield;;SP11A
A;marge.simpson@simpsons.com;01270555111;;0794646464;09/12/2004;639639639639639;
Some MakeModel;;Poor;TMobile;K1089;K1121;;;;;;;Absolutely goosed;N;;ABC1;DEF2;10
/12/2004;
Does anyone have any ideas?
Thanks.
( "To become Wise, first you must ask Questions"