// JCLLIB ORDER=your.proclib.PROCLIB
// INCLUDE MEMBER=IOASET
//GTSTRT5 EXEC CTMDAILY,
// DATEREC=DATERECU <== CHANGE
//DAJOB DD *
ORDER DDNAME=SCHDLIB MEM=IDGS1 JOB=IDJOB1
ORDER DDNAME=SCHDLIB MEM=IDGS1 JOB=IDJOB2
ORDER DDNAME=SCHDLIB MEM=IDGS1 JOB=IDJOB3
The DAJOB DD statement looks familiar because these parameters are ultimately passed to CTMJOB. Therefore, any syntax that is valid for passing parameters to program CTMJOB, as demonstrated in previous steps in this chapter, can be used in the User Daily job.
But there is a difference. Note that the order statements do not contain date parameters as they did in the previous steps. Instead the date information is provided by a record called the Date Control record. You can now identify the Date Control record to the job, and then create this Date Control record, using the DATEREC parameter in the procedure that points to the member containing the Date Control record.
Now note the statement DATEREC=DATERCU. You should examine this item for a moment.
// DATEREC=DATERECU
to this statement:
// DATEREC=IDDCRU
and then exit the JCL.
Parent Topic |