I have GDG defined e.g. GDG.smaplegdg.base, after processing the GDG. it contains some records and which is input to the second step2.
How can I use GDG to use it as input file at step2.
Answer Posted / vaneesh khurana
In the same jcl if we have to refer a GDG version which was
build in any previous step then have to mention it as (+0)
not (+1)
//STEP1 DD DSN=GDG.smaplegdg.base(+1),
Disp=(NEW,CATLG,DELETE)
//STEP2 DD DSN=GDG.smaplegdg.base(+0),DISP=SHR
| Is This Answer Correct ? | 1 Yes | 21 No |
Post New Answer View All Answers
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
what are the types of abends that occur on job failure? And explain the possible causes of these
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
What dd statement is used to supply the name of a dataset?
Explain how can a stopped job be started again?
Is automatic restart possible in jcl? If yes, how?
Explain in DD statement what is the use of DCB parameter?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
What are the utility programs in jcl?
what is the JCL statement consists of?
Is their any set of rules for dd? Explain.
how do you access an uncataloged dataset in a jcl?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
i want to store 20 digits . how will u do it in cobol ?