Previous Topic

Next Topic

Book Contents

Book Index

CTMBLDAE Example 2

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):

 

 -----S-------------S-------------S-------------S-------------S-------------S

                1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9 +

 09                         Y             Y             Y             Y

 -----S-------------S-------------S-------------S-------------S-------------S

 

An AutoEdit symbols member named RLPREVD is created:

%%RL990907=RL000831

%%RL990914=RL000907

%%RL990921=RL000914

%%RL990928=RL000921

%%RL991005=RL000928

The submitted JCL DD statements on September 14, 2000:

//SYSUT1   DD  DSN=PREFIX.RL000907,DISP=SHR

//SYSUT2   DD  DSN=PREFIX.RL000914,DISP=(NEW,CATLG)

Parent Topic

Examples for CTMBLDAE