What is the difference between specifying DISP=OLD and
DISP=SHR for a dataset?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
What are the common jcl syntax errors you get? This is not abends?
How do you create a temporary dataset? Where will you use them?
Why we will create load module in PDS only, Why nt in PS?
how to edit a tape dataset ? asked in wipro
How can we increment subscript and index?
how would you create a temporary dataset? And where will you use them?
How can a fb file convert to vb file using sort program?
Can there be 2 job statements in a JCL? If yes what is the purpose of doing tha?
In your JCL, run the even numbered steps if date is even and run odd numbered steps if date is odd . Where do you generate the date ??in cobol or JCL ??
How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
if we are specifing joblib as well as steplib in job then at the time of execution how the process will complete