Sort Step
Part of the Batch Jobs with JCL section of Coddy's COBOL Programming journey. Lesson 16 of 19.
Challenge
EasyPass the valid records to a sort instead of printing them: GOODOUT becomes the temporary data set &&GOOD, created and passed. Then add step SORT running SORTACCT: SORTIN reads &&GOOD and deletes it, SORTOUT and SYSOUT print.
Try it yourself
//NIGHTLY JOB (ACCT),'CODDY',CLASS=A,MSGCLASS=X
//VALID EXEC PGM=VALIDATE
//ACCTIN DD DSN=CODDY.ACCT.DAILY,DISP=SHR
//GOODOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//* Write step SORT here