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
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 |
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 |
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 |
How to get the last but one duplicate record of the file using Sort?
define cond parameter in jcl?
How is a dataset passed from one step to another?
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 ?
How to DEBUG a JCL?
What is the purpose of the PARM keyword in the EXEC statement?
I have 3 duplicate records in a file . I want to eliminate 1st, 2nd and copy 3rd one only . HOW ?
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 ???
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?
GDG Create syntax ?
What is the use of IEBGENER ?
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) ?