A job requires as input a data set whose name contains the date – PREFIX.%%RL%% created on the date of the program’s last run. The JCL for the job contains the following statements:
Figure 19 CTMBLDAE – Example 2
//JCL JOB
//* %%LIBSYM CTM.PROD.SYMBOLS %%MEMSYM RLPREVD
// EXEC PGM=RLPGM
//SYSUT1 DD DSN=PREFIX.%%RL%%ODATE,DISP=SHR
//SYSUT2 DD DSN=PREFIX.RL%%ODATE,DISP=(NEW,CATLG)
The CTMBLDAE utility is submitted with the following statements:
%%RESOLVE OFF
CALLIB=CTM.PROD.CAL
CALMEM=RLRUN
OUTLIB=CTM.PROD.SYMBOLS
OUTMEM=RLPREVD
GEN=%%RLODAT=RLPREV
Input calendar RLRUN looks as follows (in September 2000):