that statement is used to create a temporary data set.
Once if v spicefiy tat DUMMY in the JCl,it means tat our program is not taking any input stream.
//STEP1 DD *
Through this statements the input can b passed to our program.
These must b coded in RUNJCL.
//STEP DD DUMMY
This statement in the RUNJCL specifies tat our program not taking any input stream.
This parameter says that the NEW dataset should b created temporary when ever program is executed.After running the progam this dataset must b DELETED from the cataloglist.
Upto My KNOWLEDGE i've given u the info.If any wrong in my explanation u can reply me.
I wil b pleaed if u do so.
Joined: 21 Nov 2005 Posts: 6 Location: Chennai, India
DD statement STEP1 defines a dummy data set. The other parameters coded on the statement are checked for syntax but not used. So all parameters coded on a DD DUMMY statement must be syntactically correct. The system checks their syntax.There are two common use of coding DUMMY parameter like this,
One use of the DUMMY parameter is in testing a program. When testing is finished and you want input or output operations performed on the data set, replace the DD DUMMY statement with a DD statement that fully defines the data set.
Another use of the DUMMY parameter is in a cataloged or in-stream procedure. Code on the DD DUMMY statement all the required parameters. When the procedure is called, nullify the effects of the DUMMY parameter by coding on the DD statement that overrides the DD DUMMY statement a DSNAME parameter that matches the DSNAME parameter on the DD DUMMY statement. For example,
procedure step PS contains the following:
//DS1 DD DUMMY,DSNAME=A,DISP=OLD
Nullify the DUMMY parameter by coding:
//JS EXEC PROC=PROC1
//PS.DS1 DD DSNAME=A