Thanks for reply. The JCL I am using is:
//X0TNSORT JOB (1,1424618),SORT,CLASS=L,PRTY=1,
// REGION=0M,MSGCLASS=M,NOTIFY=&SYSUID TYPRUN=SCAN
/*ROUTE PRINT LOCAL
/*JOBPARM ROOM=242C
//*
//SORT1 EXEC PGM=SORT
//SORTIN DD DSN=SYSPGRP.XMKT.CCI.CLEAR.TEST,VOL=SER=Y2VL1E,DISP=SHR,
// UNIT=3390
//SORTOF01 DD DSN=SYSPGRP.XMKT.SORT01,
// SPACE=(CYL,(10,20),RLSE),DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80)
//SORTOF02 DD DSN=SYSPGRP.XMKT.SORT02,
// SPACE=(CYL,(10,20),RLSE),DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80)
//SORTOF03 DD DSN=SYSPGRP.XMKT.SORT03,
// SPACE=(CYL,(10,20),RLSE),DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80)
//SORTOF04 DD DSN=SYSPGRP.XMKT.SORT04,
// SPACE=(CYL,(10,20),RLSE),DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80)
//SORTOF05 DD DSN=SYSPGRP.XMKT.SORT05,
// SPACE=(CYL,(10,20),RLSE),DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80)
//SORTOF06 DD DSN=SYSPGRP.XMKT.SORT06,
// SPACE=(CYL,(10,20),RLSE),DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80)
//SORTOF07 DD DSN=SYSPGRP.XMKT.SORT07,
// SPACE=(CYL,(10,20),RLSE),DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80)
//SORTOF08 DD DSN=SYSPGRP.XMKT.SORT08,
// SPACE=(CYL,(10,20),RLSE),DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80)
//SORTOF09 DD DSN=SYSPGRP.XMKT.SORT09,
// SPACE=(CYL,(10,20),RLSE),DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80)
//SORTOF10 DD DSN=SYSPGRP.XMKT.SORT10,
// SPACE=(CYL,(10,20),RLSE),DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80)
//SORTOF11 DD DSN=SYSPGRP.XMKT.SORT11,
// SPACE=(CYL,(10,20),RLSE),DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80)
//SYSOUT DD SYSOUT=*
//SYSIN DD *
INREC IFTHEN=(WHEN=GROUP,BEGIN=(3,1,ZD,EQ,1),END=(3,1,ZD,EQ,2),
PUSH=(81:ID=1))
SORT FIELDS=COPY
OUTFIL FILES=01,INCLUDE=(81,1,ZD,EQ,1),BUILD=(1,80)
OUTFIL FILES=02,INCLUDE=(81,1,ZD,EQ,2),BUILD=(1,80)
OUTFIL FILES=03,INCLUDE=(81,1,ZD,EQ,3),BUILD=(1,80)
OUTFIL FILES=04,INCLUDE=(81,1,ZD,EQ,4),BUILD=(1,80)
OUTFIL FILES=05,INCLUDE=(81,1,ZD,EQ,5),BUILD=(1,80)
OUTFIL FILES=06,INCLUDE=(81,1,ZD,EQ,6),BUILD=(1,80)
OUTFIL FILES=07,INCLUDE=(81,1,ZD,EQ,7),BUILD=(1,80)
OUTFIL FILES=08,INCLUDE=(81,1,ZD,EQ,8),BUILD=(1,80)
OUTFIL FILES=09,INCLUDE=(81,1,ZD,EQ,9),BUILD=(1,80)
OUTFIL FILES=10,INCLUDE=(81,2,ZD,EQ,10),BUILD=(1,80)
OUTFIL FILES=11,INCLUDE=(81,2,ZD,EQ,11),BUILD=(1,80)
/*
I am sorry as I don't know how to add a window to scroll code. The SYSIN is starting from column 3 in the JCL.