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 / pmacmo
Question 1:
TEST.FILE3 and TEST.FILE2
Note:
If you just want TEST.FILE3 you must nullify the TEST.FILE1
and TEST.FILE2 concatenation as in:
//procstepname.ABC DD DSN=TEST.FILE3.DISP=SHR
// DD DSN=NULLFILE
Question 2:
TEST.FILE3 and TEST.FILE2, the second override will be
ignored
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
What is notcat 2 - gs?
When output dataset space is required, what quantity categories are used?
How to pass the parameter in parm using linkage section ? (syntax)?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Is their any limit for data sets?
What do you understand by the term notcat 2 – gs?
What is the function of the dd mgmtclas keyword in sms datasets?
how JCL works?
Where can program checkpoints be stored for use in a restart?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
What do you understand by the terms: joblib and steplib?
How can the disposition of sysout datasets be set for an entire jobstream?
How does jcl act on a cobol code?