Suppose a proc step has a DD statement like
//ABC DD DSN=TEST.FILE1,DISP=SHR
and the above DD name is overridden from the JCL as given
//procstepname.ABC DD DSN=TEST.FILE3 - Will the DD
statement now have just TEST.FILE3 or it will be TEST.FILE3
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
Answers were Sorted based on User's Feedback
Answer / satheesh
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
// DD DSN=TEST.FILE3
Q2:Giving two ovverrides for same DD, will it give JCL
No, Job will end with RC=0 and use second override ingonred
|Is This Answer Correct ?||10 Yes||0 No|
Answer / pmacmo
TEST.FILE3 and TEST.FILE2
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
TEST.FILE3 and TEST.FILE2, the second override will be
|Is This Answer Correct ?||2 Yes||5 No|
what is inrec fields and outrec fields in sorting
Can I share my data with other jobs? How?
Why we will create load module in PDS only, Why nt in PS?
Min no of member?s (PDS) in one directory block?
I have a input file. Data like: ABCDEFGH.... i want out put file like AB BC CD DE....How can do this??
Statement1 "We can not use UNCATLG in SMS managed VSAM datasets" Statement2 "We can not delete a SMS managed data set without UNCATLG it" (P-353, Saba Zameer book) Then how do we delete SMS managed VSAM datasets ?
What is Automatic Restart ? EXEC PGM = PROG1, RD = R (Is it the Restart of a JOBSTEP or Restarting the execution of the program?) Do we Restart it or it automatically Restarts executing again and again ? Then when it will finish executing ? or After Abending, when we submit it again, then it is Restarted from the Last successful Checkpoint ? If some JOBSTEP is abending, what is the benifit to Restart it, WILL IT NOT ABEND AGAIN if you don't change the LOGIC ?
What is the function of the dd avgrec keyword in sms datasets?
When a dataset is UNCATALOGED in a JOBSTEP, how to get its UNIT and VOL in JCL to refer in subsequent steps ?
What do you feel makes a good program?
In JCL..for TIME Parameter was specified both JOB & STEP..which one is overrides
Mention the types of job control statements?