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
. . . . . . . . . . . . . . . . . . . . . . . . . . .