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 ?||28 Yes||2 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
|Is This Answer Correct ?||18 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
|Is This Answer Correct ?||8 Yes||6 No|
How jcl work to handle various input output file operations?
Can I send output of job to my remote device careerride123?
I have a file in which I have 20 records. I want my first record to go into file 1 and second record to go in second file. I want to copy the alternate records like this in the two output files. How can I do this using JCL?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
oza017.myorg.emp has 100 records ,oza018.myorg.staff has 200 records but 50 are the common records in both files copy all the common records into oza017.myorg.xyz dataset
please could u tell me the difference between SORT, SYNCSORT,CA-SORT, DFSORT,
in ways data can be passed to a COBOL program from JCL?
What is multithreading in jcl?
Describe the various parameters utilized in the creation of a gdg?
what are the symbolic parameters? why do we use symbolic parameters ?
how do you access an uncataloged dataset in a jcl?
Do we need to code DCB parameters when using DISP position as MOD?