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
Input
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
jramuk,
Quote:
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.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
jramuk,
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: