What is the difference between specifying DISP=OLD and
DISP=SHR for a dataset?

Answers were Sorted based on User's Feedback



What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?..

Answer / guest

OLD specifies exclusive use of a dataset, SHR allows
multiple jobs to concurrently access the dataset Note: When
updating a dataset, you would normally use OLD.

Is This Answer Correct ?    29 Yes 3 No

What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?..

Answer / shailendra 2008

disp=old means at the time of execution another job can't
use that file.after completion of job another job can use.

disp=shr at the timeof exection many user can use in read
mode.

Is This Answer Correct ?    19 Yes 1 No

What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?..

Answer / ganga

Read from beginning of dataset. But if u write, then it
will overwrite on existing data. i.e old data is lost.

Is This Answer Correct ?    9 Yes 2 No

What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?..

Answer / sunil

disp= old ...it will give exclusive use of dataset.
disp= shr....multiple job can use the dataset concurrently..
but in both case, while writing , it will overwrite to old
dataset..i.e, old data will be lost.

Is This Answer Correct ?    5 Yes 1 No

What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?..

Answer / anurag

Generally DISP = OLD is used when a Dataset is generated in
a step of job and then subsequently used in the next up
coming steps of the same job ,
DISP=SHR signifies that the dataset is can be shared by the
multiple jobs.

Is This Answer Correct ?    8 Yes 6 No

Post New Answer

More JCL Interview Questions

Is it possible to left uncode disp? If yes, how?

0 Answers  


how will be submit 1 jcl by other jcl? means that how 'll submit one job by other job??

3 Answers   Steria,


How To get the last record in VSAM file in cluster? and How can u get the ksds file records into ur cobol program ? Pls tell me about these two questions.

1 Answers   Cap Gemini,


when GDG version number get changed ? bcz always Generations only increasing.

1 Answers   Cap Gemini,


I have one GDG. Everyday One new version is being created.Now I want to split this created version in different files each having 1000 records. Here Problem is I don't know How many records will be there in new version of GDG? that's why I don't know How many Out files we need to use . Interesting??????????????

4 Answers   CTS,






What are steplib and joblib?

0 Answers  


What is DATACOM db?

2 Answers  


Can we give two user name in NOTIFY parameter in JOBCARD

1 Answers   Syntel,


If I defined space as TRK(10,10) for the one file and lrecl = 4K then tell me how many record will vsam file will contain. will it 1,2,3,4,5 or how many,

3 Answers   IBM,


What will happen if you attempt to restart a job in the middle of a JCL // IF .... // ENDIF?

4 Answers  


what is the Difference between SYSIN and PARM ?

5 Answers   IBM,


Hi, Please clear me when COND=ONLY and COND=EVEN. Explain me with example.

2 Answers   GJ,


Categories