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
which parameter is used to check the syntax of a jcl without executing it?
Name a few IBM utility programs, and explain its function.
What are hierarchy levels in jcl?
How to submit a jcl from cics?
What are steplib and joblib?
how to compare two datasets without using superce because output is limited to 133 bytes
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?
How gdg are concatenated?
Is it possible to code instream data in a PROC?
Does jcl support automatic restart?
Why include statement is used in a jcl?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
What is the difference between run mode and addressing mode?
What parameter of the job statement is used to limit the cpu time consumed by the job?
Explain how can the submitting users racf authority be overridden in a job stream?