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

we define the array like this 01 array 02 veg occurs 10 times 03 days occurs 6 times 04 cost pic 9(5). but why don't we write it as 01 array 02 veg occurs 10 times 03 days occurs 6 time 04 cost pic 9(5). is there any error will occur ,what is it? and why don't 01,02,03 not contain picture clause? if we put pic in those is there any error will occur what is it will occur?

1 Answers   Fidelity,


what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include temporary file used for sorting in assign statement?

1 Answers  


what is the sortcard for comparing two files with a field key and get the duplicates in onefile and noduplicates in another file

3 Answers   Virtusa,


what are the options in file-aid to edit vsam dataset and to compare data sets.

2 Answers   Ocwen,


when can a job time-out occur? How to overcome that?

0 Answers   IBM,






i created one base gdg with lrecl = 100 , now i need to create versions with different lrecl =150,200 can it be possible to create like tht ?

1 Answers   Patni, Syntel,


HOw to submit a job from other user id.? for exp some other job name like "t4622sdx".now i want to submit that job from my user id?(we don't know that location at all Just we know job name)

1 Answers   MSN Pharma, UST,


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?

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,


How to release a JOB (from the input queue) held by TYPRUN = HOLD ? and how to see the installation default time after which a JOB will be automatically released ? How to see the list of currently HELD JOBS ?

5 Answers   IBM,


what is DD statement is used in JCL?

0 Answers  


Can we call instream to catalog and catalog to instream?

0 Answers  


Categories