Back to Browse

JCL - Sort Part2

2.5K views
Jun 1, 2019
4:39

The INCLUDE statement is used to select only specific records with some condition. Syntax: INCLUDE COND =(starting position, length, format, comparison) OMIT statement is used to exclude specific records with some condition. Syntax: OMIT COND=(starting position, length, format, comparison) The below JCL statement is used to sort and select only specific records using INCLUDE statement. //JOB Statement //STEP010 EXEC PGM=SORT //SORTIN DD DSN=HLQ.CHANDRU.PS1,DISP=SHR //SORTOF01 DD DSN=HLQ.CHANDRU.PS2,DISP=SHR //SORTOF02 DD DSN=HLQ.CHANDRU.PS3,DISP=SHR //SYSIN DD * SORT FIELDS=COPY OUTFIL FILES=01, INCLUDE COND=(13,18,CH,EQ,C'CUSTOMER',OR, 13,18,CH,EQ,C'MANAGER') OUTFIL FILES=02, INCLUDE COND=(13,18,CH,EQ,C'DEVELOPER') /*

Download

0 formats

No download links available.

JCL - Sort Part2 | NatokHD