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
Is condition checking possible in jcl? If yes, how?
Where & How Do You Code Identifier In Jcl?
is there any way to execute more than one proc in the same exec statement at the same time..?
Differentiate between the joblib and the steplib statements?
Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You
Are there any set of rules for the names of the steps used in a job? What are they?
Is automatic restart possible in jcl? If yes, how?
Explain the job statement in jcl?
which parameter is use to declare the name of dataset in dd statement?
how to do automated restart when a job abends?
Explain the hierarchy levels in jcl?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
What is the significance of addrspc parameter in exec statement?
what are the statements that are not valid to be included in an include statement?
Explain the function of job statement in jcl?