****** ***************************** Top of Data ******************************
- - - - - - - - - - - - - - - - - - - 4 Line(s) not Displayed
000005 //S1 EXEC PGM=SORT
000006 //SYSPRINT DD SYSOUT=*
000007 //SYSOUT DD SYSOUT=*
000008 //SORTIN DD *
000009 1234 ... ... ...
000010 2345 ... ... ...
000011 2345 ... ... ...
000012 3456 ... ... ...
000013 3456 ... ... ...
000014 3456 ... ... ...
000015 4567 ... ... ...
000016 4567 ... ... ...
000017 4567 ... ... ...
000018 4567 ... ... ...
000019 //JCL DD DISP=(,PASS),DSN=&JCL,
000020 // DCB=(RECFM=FB,LRECL=80),
000021 // UNIT=VIO,SPACE=(TRK,(1,1))
000022 //CTL DD DISP=(,PASS),DSN=&CTL,
000023 // DCB=(RECFM=FB,LRECL=80),
000024 // UNIT=VIO,SPACE=(TRK,(1,1))
000025 //SYSIN DD *
000026 OPTION COPY
000027 INREC OVERLAY(81:SEQNUM,4,ZD,RESTART=(1,4))
000028 OUTFIL FNAMES=JCL,
000029 INCLUDE=(81,4,ZD,EQ,1),
000030 REMOVECC,
000031 HEADER1=('//SPLIT JOB NOTIFY=&SYSUID, ',/,
000032 '// CLASS=A,MSGCLASS=X, ',/,
000033 '// MSGLEVEL=(1,1) ',/,
000034 '//* ',/,
000035 '//S EXEC PGM=SORT ',/,
000036 '//SYSPRINT DD SYSOUT=* ',/,
000037 '//SYSOUT DD SYSOUT=* ',/,
000038 '//SORTIN DD DISP=SHR,DSN=XXXX.YYYY.IN'),
000039 TRAILER1=('//SYSIN DD *'),
000040 BUILD=(1:C'//OU',1,4,13:C'DD DISP=(,CATLG),',80:X,/,
000041 1:C'//',16:C'DSN=XXXX.YYYY.OU',1,4,C',',80:X,/,
000042 1:C'//',16:C'UNIT=SYSDA,SPACE=(CYL,(1,1)),',80:X,/,
000043 1:C'//',16:C'DCB=(RECFM=FB,LRECL=80)',80:X)
000044 OUTFIL FNAMES=CTL,
000045 INCLUDE=(81,4,ZD,EQ,1),
000046 REMOVECC,
000047 HEADER1=(' OPTION COPY'),
000048 TRAILER1=('/*',/,'//'),
000049 BUILD=(3:C'OUTFIL FNAMES=OU',1,4,
000050 C',INCLUDE=(1,4,CH,EQ,C''',1,4,C''')',80:X)
000051 //S2 EXEC PGM=SORT
000052 //SYSPRINT DD SYSOUT=*
000053 //SYSOUT DD SYSOUT=*
000054 //SORTIN DD DISP=(OLD,PASS),DSN=&JCL
000055 // DD DISP=(OLD,PASS),DSN=&CTL
000056 //SORTOUT DD SYSOUT=*
000057 //SYSIN DD *
000058 OPTION COPY
****** **************************** Bottom of Data ****************************