Examples of the DUMMY parameter
Example 1
//OUTDD1 DD DUMMY,DSNAME=X.X.Z,UNIT=3390,
// SPACE=(TRK,(10,2)),DISP=(,CATLG)
DD statement OUTDD1 defines a dummy data set. The other parameters coded on the statement are checked for syntax but not used.
Example 2
//IN1 DD DUMMY,DCB=(BLKSIZE=800,LRECL=400,RECFM=FB)
DD statement IN1 defines a dummy data set. The DCB parameter supplies data control block information not supplied in the program. Without it, the step might be abnormally terminated.
Example 3
//IN2 DD DUMMY,DSNAME=ELLN,DISP=OLD,VOLUME=SER=11257,UNIT=3390
When calling a cataloged procedure that contains DD statement IN2
in procedure step STEP4, you can nullify the effects of the DUMMY
parameter by coding:
//STEP4.IN2 DD DSNAME=ELLN
Example 4
//TAB DD DSNAME=APP.LEV12,DISP=OLD
If you call a cataloged procedure that contains DD statement TAB
in procedure step STEP1, you can make this DD statement define a dummy
data set by coding:
//STEP1.TAB DD DUMMY
Example 5
//MSGS DD SYSOUT=A
If you call a cataloged procedure that contains the DD statement
MSGS in procedure step LOCK, you can make this DD statement define
a dummy data set by coding:
//LOCK.MSGS DD DUMMY