Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Need information DUMMY in the JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need information DUMMY in the JCL
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

Moderator Team Head


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

PostPosted: Tue Sep 05, 2006 9:42 pm    Post subject: Re: Need information DUMMY in the JCL
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    Post subject: Re: Need information DUMMY in the JCL
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DUMMY When do I need add a DCB parameter Martylin JCL & VSAM 3 Fri Dec 08, 2017 7:20 am
No new posts JCL INFORMATION - Need to know what t... gauravd01 JCL & VSAM 8 Wed Nov 29, 2017 12:54 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Information About the Equifax Securit... Rohit Umarjikar PC Guides & IT News 6 Mon Sep 11, 2017 9:10 pm
No new posts retrieving envelope information out o... VintageReceiver TSO/ISPF 6 Thu Aug 10, 2017 8:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us