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 |
when we use sysprint and sysout statements
how can i use the parameters decalred in main pgm in sub pgm
How to pass the temp dataset form one JOB step to another?
When should DISP=MOD is used?
how to create a member or sequential dataset through tso command??
i have 3 steps in my jcl, where i want to run only one step at a time depending on the variable. How should i give the condition statement... I have tried this with two steps which is working but not able to add condn for the 3rd step. can anyone help me... I want to know the cond stmt which i can code in step 3 and step4, so that only either step2 or step3 or step4 executes
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
I have 5 steps in my jcl ,I need to execute first three steps and then 2nd step again ,4th and 5th steps if rc of 2nd step is zero
what is the sortcard for comparing two files with a field key and get the duplicates in onefile and noduplicates in another file
There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and not using any Restart and IF/THEN/ELSE parameter?
Hi, Please clear me when COND=ONLY and COND=EVEN. Explain me with example.
How to find out the number of records in a file using JCL