View previous topic :: View next topic
|
Author |
Message |
amajhi
New User
Joined: 21 Jul 2006 Posts: 18 Location: Pune
|
|
|
|
Hi,
I am looking into one JCL and found for one of the DD statement it is coded as :
DD DUMMY,DSN=(DSNNAME),DISP=(NEW,CATLG,DELETE)
So can any one plz expain why DSN name is given along with DUMMY ? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I have no idea, unless it was coded like that in a PROC.
Maybe the coder just wanted to document what dataset that DD used to use? |
|
Back to top |
|
|
amajhi
New User
Joined: 21 Jul 2006 Posts: 18 Location: Pune
|
|
|
|
In the JCL it is mentioned as :
//G.DM4 DD DUMMY,DSN=Dsnname,DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(CYL,(1,1)),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=23440)
While DM4 is an output file. |
|
Back to top |
|
|
amajhi
New User
Joined: 21 Jul 2006 Posts: 18 Location: Pune
|
|
|
|
I think job will not create new file rather it will treat that DD as Dummy one. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
amajhi wrote: |
In the JCL it is mentioned as :
//G.DM4 DD DUMMY,DSN=Dsnname,DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(CYL,(1,1)),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=23440)
While DM4 is an output file. |
(by bold text) I believe, you meant DD-name for some output file. Do you have some step named as "G" in your JCL? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Anuj,
That looks like an override for a PROC
procstepname.DDname DD whatever info to follow |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Yes expat that could be - my intention was to say (once I could get the answer from OP), with the piece of code shown, that the user wnats to treat DSN associated with DM4 (the ddname) as DUMMY. |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
I prefer to make the DUMMY a symbolic value so you don't have to change the PROC and just change the symbolic value in the execution JCL.
e.g.
Dummied
//JS EXEC PROC=PROC1,D='DUMMY,'
//DS1 DD &D.DSNAME=A,DISP=OLD
Undummied..
//JS EXEC PROC=PROC1,D=''
//DS1 DD &D.DSNAME=A,DISP=OLD |
|
Back to top |
|
|
|