Page 1 of 1

How to sort multiple output files differently.

PostPosted: Fri Jul 24, 2015 8:05 pm
by jself
Hi,
I'm trying to sort multiple output files differently.
for ex:
FILE 1 and file 3 can by sort fields=copy.
FILE 2 - I would like to sort fields=21,10,a
thanks for reviewing.

//SORT05 EXEC PGM=SORT
//SORTIN DD DSN=INPUT FILE,
// DISP=SHR
//SORTOF1 DD DSN=IRSTAPEA,
// DISP=(NEW,CATLG),
// RECFM=FB,LRECL=750
//SORTOF2 DD DSN=IRSTAPES,
// DISP=(NEW,CATLG),
// RECFM=FB,LRECL=750
//SORTOF3 DD DSN=IRSTAPCF,
// DISP=(NEW,CATLG),
// RECFM=FB,LRECL=750
//SYSIN DD DSN=*
SORT FIELDS=COPY
OUTFIL FILES=1, /*FILE WITH A RECORD
INCLUDE=(1,1,CH,EQ,C'A')
OUTFIL FILES=2, /*FILE WITH B RECORDS
INCLUDE=(1,1,CH,EQ,C'B')
OUTFIL FILES=3, /*FILE WITH C AND F RECORDS
INCLUDE=(1,1,CH,EQ,C'C',OR,1,1,CH,EQ,C'F')
END







. . . . . . . . . . . . . . . . . . . . . . . . . . .

Re: How to sort multiple output files differently.

PostPosted: Mon Jul 27, 2015 7:08 pm
by Terry Heinze
In the future, please use Code tags for readability.

Re: How to sort multiple output files differently.

PostPosted: Mon Jul 27, 2015 8:59 pm
by BillyBoyo
This has been discussed recently in the DFSORT part of the forum. The same technique will apply to SyncSORT.

dfsort-icetool-icegener/topic10624.html#p53158