Code: |
AAABBBCCCDDDEEEFF TEEE AAABBBCCCDDDEEEFF TAAA AAABBBCCCDDDEEE12 TEEE AAABBBCCCDDDEEE13 BCCC |
Code: |
AAABBBCCCDDDEEEFF TAAA AAABBBCCCDDDEEE12 TEEE AAABBBCCCDDDEEE13 BCCC AAABBBCCCDDDEEEFF KAAA |
Code: |
AAABBBCCCDDDEEEFF TEEE AAABBBCCCDDDEEE12 TEEE AAABBBCCCDDDEEE13 BCCC |
Code: |
EEEEEEEEEEEEEEEEE WXYZ |
Code: |
FFFFFFFFFFFFFFFFF DUP1 FFFFFFFFFFFFFFFFF DUP2 FFFFFFFFFFFFFFFFF DUP3 FFFFFFFFFFFFFFFFF TEEE |
Code: |
GGGGGGGGGGGGGGGGG DUP1 GGGGGGGGGGGGGGGGG DUP2 GGGGGGGGGGGGGGGGG TEEE GGGGGGGGGGGGGGGGG TEEE |
Code: |
//STEP0100 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD DISP=SHR,DSN=your input file /* //KEYS DD DSN=Your output file, // DISP=(NEW,CATLG,DELETE) // SPACE=(CYL,(X,Y),RLSE) /* //CHKRC DD DSN=Your CHKRC file, // DISP=(NEW,CATLG,DELETE) // SPACE=(CYL,(X,Y),RLSE) /* //SYSIN DD * ** TAG 'TEEE' RECORDS TO BE SORTED AS FIRST RECORD PER KEY INREC OVERLAY=(81:26,4,CHANGE=(1,C'TEEE',C'0'), NOMATCH=(C'1')) SORT FIELDS=(01,17,CH,A, # KEY 81,01,CH,A) # IND OUTREC IFTHEN=(WHEN=GROUP,KEYBEGIN=(1,17), PUSH=(81:26,4,85:SEQ=3)) OUTFIL FNAMES=KEYS, INCLUDE=(85,3,ZD,EQ,1), BUILD=(01,80) OUTFIL FNAMES=CHKRC, INCLUDE=(85,3,ZD,GT,1,AND,81,4,CH,NE,C'TEEE'), BUILD=(01,80) /* //********************************************************** //* SET RC=16 IF CHKRC DATASET HAS ATLEAST 1 RECORD * //********************************************************** //STEP0200 EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //INP DD DISP=SHR,DSN=Your CHKRC File //SYSIN DD * PRINT INFILE(INP) CHARACTER COUNT(1) IF LASTCC = 0 THEN DO SET MAXCC=16 END ELSE IF LASTCC = 4 THEN DO SET MAXCC=0 END /* |
Kolusu wrote: | ||
|
output generated using printer-friendly topic mod. All times are GMT - 5 Hours