The disp in the JCL is MOD and the program opens the file in
OUTPUT mode. What happens ? The DISP in the JCL is SHR and
the program opens the file in EXTEND mode. What happens ?

Answers were Sorted based on User's Feedback



The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The DISP i..

Answer / guest

Records will be written to end of file (append) when a WRITE
is done in both cases.

Is This Answer Correct ?    10 Yes 1 No

The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The DISP i..

Answer / mohamed khan

Records will be written to end of file (append) when a
WRITE is done in both cases.

Is This Answer Correct ?    7 Yes 0 No

The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The DISP i..

Answer / guest

If the parameter is MOD and Mode is OUTPUT, the entire file
will be overwritten.
If the paramete is SHR and Mode is EXTEND, the records will
be appended at the end.

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More JCL Interview Questions

How to get the last but one duplicate record of the file using Sort?

2 Answers   Fidelity,


define cond parameter in jcl?

0 Answers   IBM,


How is a dataset passed from one step to another?

2 Answers   DELL,


What is Automatic Restart ? EXEC PGM = PROG1, RD = R (Is it the Restart of a JOBSTEP or Restarting the execution of the program?) Do we Restart it or it automatically Restarts executing again and again ? Then when it will finish executing ? or After Abending, when we submit it again, then it is Restarted from the Last successful Checkpoint ? If some JOBSTEP is abending, what is the benifit to Restart it, WILL IT NOT ABEND AGAIN if you don't change the LOGIC ?

1 Answers   IBM,


How to DEBUG a JCL?

9 Answers   Satyam,


What is the purpose of the PARM keyword in the EXEC statement?

3 Answers  


I have 3 duplicate records in a file . I want to eliminate 1st, 2nd and copy 3rd one only . HOW ?

3 Answers   CTS, DELL,


Can I concatenate various datasets whose organization are different from each other. Lets say I want to cancatenate a PDS file, a PS file, a GDG file etc. Can You do that ?? If yes, how ? is there any separate Utility to do so ???

4 Answers  


Suppose a proc step has a DD statement like //ABC DD DSN=TEST.FILE1,DISP=SHR DSN=TEST.FILE2,DISP=SHR and the above DD name is overridden from the JCL as given below //procstepname.ABC DD DSN=TEST.FILE3 - Will the DD statement now have just TEST.FILE3 or it will be TEST.FILE3 and TEST.FILE2? Suppose if it is overridden twice like //procstepname.ABC DD DSN=TEST.FILE3 //procstepname.ABC DD DSN=TEST.FILE4 Will this give a JCL error? If not, what will be final output?

2 Answers  


GDG Create syntax ?

4 Answers   Xansa,


What is the use of IEBGENER ?

2 Answers   Cap Gemini, Wipro,


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

0 Answers   IBM,


Categories