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 |
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
what is pupose and meaning of the REGION keyword and what jcl statement is it associated with?
What is the error code SOC01 indicate ?
1)what is compilation jcl for cobol program but it is calling another program 2)what is compilation jcl for cobol program but it is calling another program(in this, main program is pure cobol but sub program is cobol+db2 program.can anyone please answer me for above questions. it's very urgent
i want to avoid the positional parameter how to code it ?
What is Uncatalog dataset? How can we access/use them?
how can we override data definitions in jcl. can any one give detailed example
is step name is compulsory in jcl ?
How can i execute 5th step without executing first 4 steps?
How to overide the symbol parameter in the jcl ?
Hi, Please clear me when COND=ONLY and COND=EVEN. Explain me with example.
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move