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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
what is the purpose of SYSOUT parameter in the DD statement?
How would I code JCL to copy a gdg data set G001v00 and create a gdg Data set G001v01
if my GDG limit has been kept as 50 and if am trying to put 60 records.what would happen. will there be any abend for this scenario
If your job fails at particular step then what would be the return code for next steps
can we give instream data in procedure
What is the use of the utility DFSRRC00 in the JCL?
what happens if job falls in loop ? how to resolve it ?
What happens if both JOBLIB and STEPLIB is specified ?
I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:
What is NOTCAT ?
Explain about Internal Sort
can we modify the code in copy book? if it possible how to submit ofter the modification.