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.

Answers were Sorted based on User's Feedback



I have GDG defined e.g. GDG.smaplegdg.base, after processing the GDG. it contains some records and w..

Answer / satya

//step1 dd dsn=GDG.smaplegdg.base(+1),Disp=
(new,catlg,delete)
When refering it in next step
//step2 dd dsn=GDG.smaplegdg.base(+1),Disp=Shr

Is This Answer Correct ?    14 Yes 0 No

I have GDG defined e.g. GDG.smaplegdg.base, after processing the GDG. it contains some records and w..

Answer / g.ranjith kumar reddy

//step2 dd dsn=GDG.smaplegdg.base(+1),Disp=Shr

Is This Answer Correct ?    5 Yes 0 No

I have GDG defined e.g. GDG.smaplegdg.base, after processing the GDG. it contains some records and w..

Answer / 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

More JCL Interview Questions

How to create delta file using JCL

1 Answers   CTC,


what is the difference between return code and maxcc?

2 Answers   iGate,


What is order of searching of the libraries in a JCL?

4 Answers  


What are the parameters that are used in creating a gdg?

0 Answers  


what is the Difference between SYSIN and PARM ?

5 Answers   IBM,


which utility is used to sort a file in jcl?

0 Answers   IBM,


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

0 Answers  


what are the types of abends that occur on job failure? And explain the possible causes of these

0 Answers  


What is the use of symbol // in jcl?

0 Answers  


Ques: How can we code COND parameter in a JCL so that only even steps (or only odd steps) get execute??

3 Answers   HSBC,


What are the differences between JES2 & JES3 ?

4 Answers  


how many max steps can we use in a job? pls answer to my question

3 Answers   TCS,


Categories