I have 820 LRECL file. I want to sort it in the manner if one sort satisfies some records has to be copied to 821 position and if another sort satisfies some records has to be copied to 821.
I will give an example so that it will be clear.
If(120,10,CH,EQ,c'')then copy these records to 821 position or if (120,10,CH,/NE,c'') then copy these records to 821 position.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
If (120,10,CH,EQ,c'') then copy these records to 821 position or if (120,10,CH,/NE,c'') then copy these records to 821 position.
Huh? There's no difference in the action for the two conditions. Either way, you want to "copy these records to 821 position" whatever that means.
Please explain more clearly what you want to do for the two different types of records. An example of the input records and expected output records would help.
I suspect you'll need to use DFSORT's IFTHEN function to do whatever is it you want to do. You can read all about how to use IFTHEN at: