IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need information DUMMY in the JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sureshbabu.jv

New User


Joined: 11 Apr 2006
Posts: 41
Location: Chennai

PostPosted: Tue Sep 05, 2006 8:18 pm
Reply with quote

The code is written the JCL like below

//STEP1 DD DUMMY DISP=(new,delete,delete),UNIT=SYSDA

what's the mean of above statement.Can you please give me idea on this.

Thanks,
Sureh
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Sep 05, 2006 9:42 pm
Reply with quote

This is an equivalent statement:

//STEP1 DD DSN=NULLFILE, DISP=(NEW,DELETE,DELETE),UNIT=SYSDA

does this make more sense?
Back to top
View user's profile Send private message
lucky.rohith
Currently Banned

New User


Joined: 06 Aug 2006
Posts: 10

PostPosted: Wed Sep 06, 2006 7:41 am
Reply with quote

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 *
INPUT DATA
/*
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.

DISP=(NEW,DELETE,DELETE)
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.

Reguards
Uday
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Sep 06, 2006 7:52 am
Reply with quote

Hi Sureh,

If the JCL was codes EXACTLY as you show, //STEP1 defines a DUMMY dataset and the "DISP=(new,delete,delete),UNIT=SYSDA" are comments.

Whoever wrote that may have started with:

//STEP1 DD DSN=ds1,DISP=(new,delete,delete),UNIT=SYSDA

and overtyped the DSN field, keeping the rest so he wouldn't have to retype it when he put the DSN back.
Back to top
View user's profile Send private message
rajeshbook

New User


Joined: 21 Nov 2005
Posts: 6
Location: Chennai, India

PostPosted: Wed Sep 06, 2006 3:26 pm
Reply with quote

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

Hope it makes clear...

Rajasekar
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Extract all the TWS scheduler informa... IBM Tools 1
No new posts Table Information - DB2 DB2 1
No new posts Remove additional information in SUPE... TSO/ISPF 10
This topic is locked: you cannot edit posts or make replies. Control-M Information. CLIST & REXX 1
Search our Forums:

Back to Top