I have to copy specified record from input to output if the cols (59 to 8) is less than 20050101 and 68th column is N (last two parameters in the below example). My ouput should contain 4th,6th,10th,11th
parameters and append another 'Y' at the last
I'm using Icetool to copy all the parameters now but the condition is not working
I guess you get empty output simply because your sample input does n't satisfy the condition given. The date at 59th position 20081030 is NOT less than 20050101. Also you'll need OUTREC/BUILD to reformat your output.
The DFSORT/ICETOOL job below will do what you asked for. However, for your input example, you will NOT get any output records because position 68 has 'Y' in all of your records and you are checking for 'N'. An example of a record that would be included is: