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 |
Hi, Say I have 10 flat files and I want to copy all these 10 flat files to a GDG versions flat files (I have GDG base: FDWS01.TEST.RESTORE) in one shot. Can we do that in one shot using a JCL. May be by using IEBGENER. It's a bit urgent. So anyone's fast rely would be appreciated.. Thanks in advance.. 10 flat files ----------------------------------- FDWS01.SUB.RESTORE1 FDWS01.SUB.RESTORE2 FDWS01.SUB.RESTORE3 ; ; FDWS01.SUB.RESTORE10 TO GDG versions ----------------------- FDWS01.TEST.RESTORE.G0001V00 FDWS01.TEST.RESTORE.G0002V00 FDWS01.TEST.RESTORE.G0003V00 ; ; FDWS01.TEST.RESTORE.G0010V00
How to identify where file is empty or not? How many ways are there to identifying?
what is the job entry system used in your project?
Can we give TIME = (1440, 59) also ? or is TIME = (1439, 59) is the last one ?
How many types of parameters are used in JCL and what are mandatory parameters of JOB statement.
hi in one of the interview one asked me how to submit a job from cobol?as well as how to submit a jcl from CICS? can u pls any one tell me..
i have 10steps and i want run step3 and based on step3 i want execute step7,8,9,10?in jcl
How to print the Output to SPOOL using MSGCLASS and SYSOUT ?
GDG Create syntax ?
How does jcl specify the job to the operating system?
Are there any set of rules for the names of the steps used in a job? What are they?
do we need to mention the location of catalogued procedure for each it's call in a single job?