What is the difference between specifying DISP=OLD and
DISP=SHR for a dataset?

Answers were Sorted based on User's Feedback



What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?..

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

What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?..

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

What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?..

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

What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?..

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

What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?..

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

Post New Answer

More JCL Interview Questions

I need exexution process for JCL programs

0 Answers  


What parameter of the job statement is used to limit the cpu time consumed by the job?

0 Answers  


//ERFDS JOB //STEP1 //STEP2 //STEP3...COND=(4,LT) //STEP4 1.CONDITION IN STEP3 REFERS TO WHICH STEP'S RETURN CODE (STEP1 OR STEP2)? 2.IN ABOVE PROGRAM IF CONDITION SATISFIES IN STEP3 WHICH STEPS WILL EXECUTE?? AND WHY? IF CONDITION IN STEP3 SATISFIES

5 Answers   IBM,


What is the function of the dd dcb keyword?

0 Answers  


Explain how can the disposition of sysout datasets be set for an entire jobstream?

0 Answers  






using cursor how can you fetch more than one record into a variable

3 Answers   Syntel,


What type of versions we r using in mainframe (jcl, cobol, db2, vsam, cics)?

1 Answers   Accenture,


How dummy is used in jcl?

0 Answers  


what is check pending option

1 Answers   Fujitsu,


//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

0 Answers  


How to alter the parameters for the existing gdg?

0 Answers  


Hi, all suppose i have 5 steps (S1,S2,S3,S4,S5) what will happen if cond is true or false (which of the other steps get executed)? 1) //s3 exec pgm=abc,cond=(0,le) 2) //s3 exec pgm=abc,cond=(0,le,step2) 3) In the jobcord RESTART=step3,cond=(0,le) 4) can i code COND=TRUE in jobcard, if yes what will happen?

3 Answers   TCS, Tech Mahindra,


Categories