Menu
CoddyTech

Report Step

Part of the Batch Jobs with JCL section of Coddy's COBOL Programming journey. Lesson 17 of 19.

challenge icon

Challenge

Easy

Now pass the sorted records on: SORTOUT becomes &&SORTED, created and passed. Add step PRINT running PRINTRPT: RPTIN reads &&SORTED and deletes it, and RPTOUT 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 DSN=&&GOOD,DISP=(NEW,PASS)
//SYSOUT   DD SYSOUT=*
//SORT     EXEC PGM=SORTACCT
//SORTIN   DD DSN=&&GOOD,DISP=(OLD,DELETE)
//SORTOUT  DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
//* Write step PRINT here

All lessons in Batch Jobs with JCL