What is the difference between DISP=OLD,DISP=MOD & DISP=NEW?

Showing Answers 1 - 5 of 5 Answers

JP

  • Nov 22nd, 2005
 

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.

 

siva

  • Dec 5th, 2005
 

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.

  Was this answer useful?  Yes

SHIVANI

  • Jan 21st, 2006
 

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........

  Was this answer useful?  Yes

Amit

  • Jan 30th, 2006
 

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

  Was this answer useful?  Yes

Afroz Alam

  • Mar 14th, 2006
 

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

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions