I am trying a simple thing, just moving some fields from input file to output file, the only logic to apply is to check if one field in input is 'M' or 'F' then concatenate two input fields to last output field. Following is the sort card that I am trying to use but getting different errors mostly syntax error.
I think this can be achieve if I use IFTHEN with BUILD twice, but just want to know if it is possible the way I am trying as above, or is there any other efficient way.
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
Manu Dhawan,
With OUTREC build you have already moved the contents of 498 to pos 160. You also moved the contents of 127 and 142 to 82 and 98 respectively. So you cannot really use the same position as your input on the IFTHEN statement. Try these updated control cards.