MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Difference between DUMMY and NULLFILE

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
naveen_kj
Beginner


Joined: 03 Feb 2003
Posts: 18
Topics: 8
Location: India

PostPosted: Mon Feb 03, 2003 5:24 am    Post subject: Difference between DUMMY and NULLFILE Reply with quote

Question Can any one explain me the difference between "DD DUMMY" and "DD DSN=NULLFILE". At what conditions these two are used?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Feb 03, 2003 6:54 am    Post subject: Reply with quote

Naveen,

As far as I know there is no difference.The resulting control blocks when opening different DCB's in Assembler are identical.The operating system action is identical in both cases, but their use in JCL is slightly different.

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:
Code:


//DS1     DD    DUMMY,DSNAME=A,DISP=OLD



Nullify the DUMMY parameter by coding:

Code:

//JS      EXEC  PROC=PROC1
//PS.DS1  DD    DSNAME=A


For a dummy data set, the system bypasses all input/output operations, does not allocate devices or storage to the data set, and does not perform disposition processing.

NULLFILE Specifies a dummy data set. NULLFILE has the same effect as coding the DD DUMMY parameter. NULLFILE must be coded as a single-word parameter.

Check the following for a detailed explanation of DUMMY Parameter

NULLFILE

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
naveen_kj
Beginner


Joined: 03 Feb 2003
Posts: 18
Topics: 8
Location: India

PostPosted: Mon Feb 03, 2003 8:46 am    Post subject: Reply with quote

thanks Kolusu Smile
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Sun Feb 09, 2003 2:59 am    Post subject: Reply with quote

Just a note about a nasty feature of dummy/nullfile datasets.

If you dummy a dataset in a concatenated list of input datasets and it's not the last dataset in the concatenation, the program will go to EOF and fail to process any remaining records that exist in the concatenated list.

Nasty!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group