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 |
Can we able insert data into a PS file Using IEBUPDTE utility??? If Yes can anyone describe it please..
Whats error code s222?
what are the options in file-aid to edit vsam dataset and to compare data sets.
Can a job have only steplib and no joblib ?
i have a file which contains duplicates ? my requirement is to eliminate duplicates and these elminated duplicates should be moved to another file can any code this using sort ?
I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4. Can it possible to run the reverse order like step4 first then step3,step2,step1?
what is the general use of PARM? Give an explanation about the system defined parameters that could be passed through this PARM like XREF,LIST,LET,APOST,RENT etc..
using cursor how can you fetch more than one record into a variable
How can unused space allocation be returned to the system when a dataset is closed?
What is the function of //jcllib statement?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?