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


Please Help Members By Posting Answers For Below Questions

Explain how can a stopped job be started again?

627


In sms datasets, what is the function of the dd avgrec keyword?

638


How can a stopped job be started again?

693


What is the function of //jcllib statement?

787


Explain the function of the steplib dd statement?

626






How to submit jcl through a cobol program?

664


What is catelog procedure and how many catelog procedure to use in one job?

7420


Explain the hierarchy levels in jcl?

1107


How is the record format of an output dataset specified?

729


How can return codes be tested before execution of a job step?

909


Is their any limit for data sets?

691


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

1934


what is the purpose of coding class parameter in job statement?

706


what is “Cond= even” and “Cond=only”?

728


i want to store 20 digits . how will u do it in cobol ?

847