I have a Variable Length File having LRECL = 550. It's a Delimited File. There is a Date Field. My Requirement is If Date Field is = 01/01/1900 That Record should Not be Included in Out Put File. Problem I'm Facing is that being a Variable Length File Column Position of Date Field is Not Fixed. So how can I get Desire Result? Below is Example.
1234|ABCD|01/01/1900||XYZ| ----> Date Field Starts at Position 11.Record Should get Rjected.
1234567|ABCDEFG|01/01/1900|ABC123|XYZ| ----> Date Field Starts at Position 17.Record Should get Rjected.
98765439|ABXYZ|02/02/2010|XYZ|XYZ123| -----> Record Should get Printed to O/P File.
98765439|ABxyz123|02/02/2010|XYZ|XYZ123| -----> Record Should get Printed to O/P File.
1|AB|01/01/1900|ABC123|XYZ| ------>Date Field Starts at Position 06.Record Should get Rjected.
Start Column Position Of Date Field is Not Fixed. Output File is going to be a Variable Length File having LRECL = 550 Delimited (Same as input File).