SORT JCL to Split data using OUTFIL

SORT JCL to Split data using OUTFIL  The following sort card will sort split the input file into two files. First file will have records which have ‘AB’ at 266th position and second file will have records which have ‘AC’ at 266th position.

INCLUDE=(266,2,CH,EQ,C’AB’)      INCLUDE=(266,2,CH,EQ,C’AC’)    

Example JCL is provided below ; ; ; ; //SORTIN   DD DISP=SHR,DSN=USERID.ABC.INPFILE //SORTOF01  DD DSN=USERID.ABC.OUTFIL1, //      SPACE=(TRK,(30,10),RLSE),                                        //      DCB=(RECFM=FB,LRECL=80,BLKSIZE=0,DSORG=PS)                //SORTOF02  DD DSN=USERID.ABC.OUTFIL2, //      SPACE=(TRK,(30,10),RLSE),                                 //      DCB=(RECFM=FB,LRECL=80,BLKSIZE=0,DSORG=PS)                //SORTWK01 DD  UNIT=DISK,SPACE=(CYL,(20,5),RLSE)                  //SORTWK02 DD  UNIT=DISK,SPACE=(CYL,(20,5),RLSE)                  //SORTWK03 DD  UNIT=DISK,SPACE=(CYL,(20,5),RLSE)                  INCLUDE=(266,2,CH,EQ,C’AB’)      INCLUDE=(266,2,CH,EQ,C’AC’)