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?
Answer Posted / satheesh
Q1:
If you CODE below ovverride in JCL
//PROCSTEPNAME.ABC DD DSN=TEST.FILE3
it will ignore File1 & file2.
To use all three files, please give below override in JCL
//PROCSTEPNAME.ABC DD
// DD
// DD DSN=TEST.FILE3
Q2:Giving two ovverrides for same DD, will it give JCL
error.
No, Job will end with RC=0 and use second override ingonred
first one.
Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
Explain how can a stopped job be started again?
In sms datasets, what is the function of the dd avgrec keyword?
How can a stopped job be started again?
What is the function of //jcllib statement?
Explain the function of the steplib dd statement?
How to submit jcl through a cobol program?
What is catelog procedure and how many catelog procedure to use in one job?
Explain the hierarchy levels in jcl?
How is the record format of an output dataset specified?
How can return codes be tested before execution of a job step?
Is their any limit for data sets?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
what is the purpose of coding class parameter in job statement?
what is “Cond= even” and “Cond=only”?
i want to store 20 digits . how will u do it in cobol ?