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
What are the difference between jcl and jes?
When space is allocated for an output dataset, what units can be used?
What is the function of dd disp parameter?
Is there any command to check wether the ps file is in sorted order?
What is condition checking in jcl? Is this possible?
How can unused space allocation be returned to the system when a dataset is closed?
List in order the hierarchical levels of jcl?
How do you access an uncatalogued dataset in a jcl?
What are s0c1, s0c4, s0c5, s0c7 and socb?
Are there any set of rules for the names of the steps used in a job?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
Explain how can an in-stream dataset be terminated?
what JCL Procedures?
What is the function of job statement in jcl?
how you can access an uncataloged dataset in a JCL?