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
What is the use of symbol // in jcl?
Explain about ISPF/TSO Commands
What are the jcl procedures?
whats the diff bw the evaluate also and and?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
what is the purpose of coding class parameter in job statement?
In sms datasets, what is the function of the dd mgmtclas keyword?
What is Cataloged Procedures?
how you can access an uncataloged dataset in a JCL?
Brief description of inline procedure of jcl.
What is the motivation behind coding class parameter in job statement?
Suppose I have five jobs to do. But I want to hold one?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.