there is a 3rd file too with the same sort as the first one. Thank you in advance for any suggestions.
Since you asked about ANY suggestion, I would also recommend to filter-out unneeded records before SORT operation (as INCLUDE COND= statement), rather than after SORT (as OUTFIL INCLUDE= parameter).
This doesn't matter when playing in a sandbox with tiny test data, but it may become critical with real production data; the run time may change significantly, especially when >50% of input data need to be excluded.
Joined: 27 Apr 2005 Posts: 43 Location: United States
Thank you for all your advice. We were able to accomplish what we needed with ICETOOL like this. Then we merged the 3 files back together into 1 file with correct sort.
Then we merged the 3 files back together into 1 file with correct sort.
It’s always recommended to share with us the entire requirements as one may suggest you better solution or approach than splitting into three output and merge again later.
In fact you can do first SORT And produce three outputs in first step , code second step to do second SORT - more efficient as second step is sorting only selected records as compared to do entire list in earlier approach.
In fact you can do first SORT And produce three outputs in first step , code second step to do second SORT - more efficient as second step is sorting only selected records as compared to do entire list in earlier approach.
Rather than double sorting of unneeded group of records the simple filtering-out of unused records seems to be more effective, isn’t it?