I have an input sequential file of LRECL= 700, with approx 60 million records upwards; this data is first sorted on key1, and written to file1.
In another step, this very same file is sorted again, but this time on key2, and written to file2.
Files 1 and 2 are used by two different process streams further down the line.
Is there a way, by which I can get the above two processing done by 1 pass only, i.e. get file1 and file2 to output in one go instead of from two different steps.
Basically we do not want to read the same data again top down to sort it on another key.
Sample SORT cards are a simple:
SORT 1 -
SORT FIELDS=(1,22,CH,A)
SORT 2 -
SORT FIELDS=(69,22,CH,A)
SORT FIELDS=(1,22,CH,A)
SORT 2 -
SORT FIELDS=(69,22,CH,A)
Thanks.