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
Is their any limit for data sets?
Explain how can return codes be tested before execution of a job step?
In job processing, what happens in execution stage?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
When space is allocated for an output dataset, what units can be used?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
What does a disposition of (new,catlg,keep) for a dsn mean?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
what are the statements that are not valid to be included in an include statement?
what JCL Procedures?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
What is jcl in mainframe?
Is acct parameter mandatory?
Describe the various parameters utilized in the creation of a gdg?