Skip to content

Instantly share code, notes, and snippets.

@thomasjk10
Last active October 24, 2017 11:07
Show Gist options
  • Save thomasjk10/a779e59287338a52560b1e009326eb20 to your computer and use it in GitHub Desktop.
Save thomasjk10/a779e59287338a52560b1e009326eb20 to your computer and use it in GitHub Desktop.
SORT JCL- Include cond
//D1RXO7ET JOB 'TST - SORTRT',NOTIFY=D1RXO7E,CLASS=1,MSGCLA
//*---SORT EXTRACT REPORT *******
//STEP001 EXEC PGM=SORT
//SORTIN DD DSN=D1RXO7E.TEST.JOB.INPUT1,DISP=SHR
//SORTOUT DD DSN=D1RXO7E.TEST.JOB.OUTPUT,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(30,8,CH,EQ,C'P#1SPW90',AND,
6,2,FS,GE,30,AND,
3,2,FS,EQ,12)
OUTREC FIELDS=(1:30,8,10:3,5,16:8,5,22:57,5,28:52,5,50X)
/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment