I should have noted that the beginning columns are for my test job:
//TOOLSORT JOB ,SYNCSORT,CLASS=S,MSGCLASS=1,
// REGION=0M,SCHENV=JOB@ANY
//*
//********************************************************************
//STEP1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
0445000
0}57500
0L20000
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTREC IFTHEN=(WHEN=(2,1,BI,GE,208,AND,2,1,BI,LE,217),
OVERLAY=(1,7,ZD,MUL,-1,TO=PDC)),
IFTHEN=(WHEN=NONE,
OVERLAY=(1,7,ZD,MUL,+1,TO=PDC))
Modify as necessary for your data.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day