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 

Dummy Vs Empty Files

 
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
prakal
Beginner


Joined: 14 Mar 2003
Posts: 22
Topics: 1

PostPosted: Fri Mar 14, 2003 11:16 am    Post subject: Dummy Vs Empty Files Reply with quote

Could you please let me know, what are the differences/advantages of using DSN=DUMMY and DSN=FILEA, where FILEA is empty in both PSE and VSAM.

Thanks
prak
Back to top
View user's profile Send private message
sanat
Beginner


Joined: 15 Feb 2003
Posts: 11
Topics: 7
Location: chennai

PostPosted: Fri Mar 14, 2003 12:20 pm    Post subject: Reply with quote

Hi,
I have a supplementary question to the above one. Is there any difference between using DUMMY file (DD DUMMY) and NULLFILE (DD DSN=NULLFILE).
This was an interview question. I refd. some JCL books and but could not make out anything.

Sanat.
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Mar 14, 2003 1:23 pm    Post subject: Reply with quote

Prakal,

The advantages of coding a dummy versus DSN=FILEA where the file is empty are as follows.

when you code DD DUMMY it does the following

  • No device or external storage space is to be allocated to the data set.
  • No disposition processing is to be performed on the data set.
  • I/O operations are bypassed


On the other case DSN=FILEA , even though the file is empty the system performs all the above mentioned tasks.

Sanat : your question has already discussed before .check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=374

Hope this helps...

cheers

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


Joined: 14 Mar 2003
Posts: 22
Topics: 1

PostPosted: Fri Mar 14, 2003 4:04 pm    Post subject: Reply with quote

Thanks a lot for the explanation Kolusu.

Prakal.
Back to top
View user's profile Send private message
slade
Intermediate


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

PostPosted: Mon Mar 17, 2003 6:17 pm    Post subject: Reply with quote

Hi Prakal,

A big difference between the two to remember is when using them in concatenations:

When a dummy file is used in a concat, processing goes to EOF even if there are other non-empty files following the dummy file.

When this condition exists with an empty file, the following files are processed by the pgm.

NOTE!!!: The "empty" file described here has been subject to close processing and contains an appropriate EOF indicator.

Regards, Jack.
Back to top
View user's profile Send private message
prakal
Beginner


Joined: 14 Mar 2003
Posts: 22
Topics: 1

PostPosted: Wed Mar 19, 2003 1:38 pm    Post subject: Reply with quote

Thanks for the information Jack.
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