//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=PLREP12.PROD.FILE,DISP=SHR
//SORTOUT DD DSN=PLREP12.TEST.SRT.NEW,DISP=(,CATLG,DELETE),
// UNIT=TEST,SPACE=(CYL,(1,1),RLSE)
//SYSIN DD *
OPTION COPY
INREC IFTHEN=(WHEN=GROUP,BEGIN=(4,26,CH,EQ,
C'CONTACT PERSON ON CALL FOR'),
RECORDS=2,PUSH=(80:SEQ=1))
OUTFIL INCLUDE=(80,1,CH,EQ,C'2'),BUILD=(1,80)
/*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=PLREP12.PROD.FILE,DISP=SHR
//SORTOUT DD DSN=PLREP12.TEST.SRT.NEW,DISP=(,CATLG,DELETE),
// UNIT=TEST,SPACE=(CYL,(1,1),RLSE)
//SYSIN DD *
OPTION COPY
INREC IFTHEN=(WHEN=GROUP,BEGIN=(4,26,CH,EQ,
C'CONTACT PERSON ON CALL FOR'),
RECORDS=2,PUSH=(80:SEQ=1))
OUTFIL INCLUDE=(80,1,CH,EQ,C'2'),BUILD=(1,80)
/*
Input file. text starts in col 4
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
* CONTACT PERSON ON CALL FOR *
* PRODUCTION SUPPORT GROUP *
* CONTACT PERSON ON CALL FOR *
* PRODUCTION SUPPORT GROUP *
output file contains the next record, but there is the number 2 in col 80. I'm not sure why the number 2 would be in col 80.
* PRODUCTION SUPPORT GROUP * 2
Any help is greatly appreciated.