GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  JCL
Go To First  |  Previous Question  |  Next Question 
 JCL  |  Question 30 of 128    Print  
What is the difference between DISP=OLD,DISP=MOD & DISP=NEW?

  
Total Answers and Comments: 5 Last Update: March 14, 2006     Asked by: Sasmita 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: JP
 

DISP=OLD denotes exclusive control of the dataset;

DISP=MOD is used when the dataset can be extended, ie, you can add records at the end of an existing dataset.

 



Above answer was rated as good by the following members:
John Rogers
November 22, 2005 02:13:37   #1  
JP        

RE: What is the difference between DISP=OLD,DISP=MOD &...

DISP OLD denotes exclusive control of the dataset;

DISP MOD is used when the dataset can be extended ie you can add records at the end of an existing dataset.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
December 05, 2005 04:46:19   #2  
siva        

RE: What is the difference between DISP=OLD,DISP=MOD &...

disp old refers to dataset already created.

disp new refers to dataset to be created at end of this step

disp mod refers some data contents are added at end of dataset if

dataset already present or a new dataset is created if it is not already present.


 
Is this answer useful? Yes | No
January 21, 2006 12:18:36   #3  
SHIVANI        

RE: What is the difference between DISP=OLD,DISP=MOD &...

one more important thing that in extend mode of file both disp old and disp mod will add the data at end

while in i-o mode disp old overwrites on previous record while

disp mod appends........


 
Is this answer useful? Yes | No
January 30, 2006 11:04:54   #4  
Amit        

RE: What is the difference between DISP=OLD,DISP=MOD &...

but I have seen in several cases that DISP SHR is also used as a out file( but DCB was not given there) how I can be modified or newly created?? please reply

Thanks

Amit


 
Is this answer useful? Yes | No
March 14, 2006 06:30:40   #5  
Afroz Alam        

RE: What is the difference between DISP=OLD,DISP=MOD &...

Coding the status filed as OLD results in the OS searching for an existing data set of the name specified. If the file is written to then its old data will be lost replaced by the new data

Setting DISP as SHR is identical to OLD except when OLD gives exclusive control of the dataset to the user whereas SHR allows multiple jobs to read the same dataset


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape