I have a file like with
Code: Select all
A
A
B
C
Code: Select all
A
A
B
C
Code: Select all
INREC FIELDS=(1,1,C'0001')
SORT FIELDS=(1,1,CH,A)
SUM FIELDS=(2,10,ZD)
INCLUDE COND=(2,10,CH,EQ,C'0001')
OUTREC FIELDS=(1,1)
Code: Select all
WER237I OUTREC RECORD LENGTH = 1
WER110I SORTOUT : RECFM=FB ; LRECL= 1; BLKSIZE= 1
WER074I SORTOUT : DSNAME=NULLFILE
WER558I ZPSORT EXECUTED
WER216A SUM FIELD OUTSIDE RANGE
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Code: Select all
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
A
A
B
C
//*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
INREC FIELDS=(1,1,C'0001')
SORT FIELDS=(1,1,CH,A)
SUM FIELDS=(2,4,ZD)
INCLUDE COND=(2,4,CH,EQ,C'0001')
OUTREC FIELDS=(1,1)
//*
You need to be a member in order to post a reply
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute