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

What are the default system and catalog libraries in JCL?

2 Answers   Infosys,


What is the purpose of dd?

1 Answers  


how you can direct the data to spool using SYSOUT option?

1 Answers  


What 3 guidelines do we have to follow when concatenating DD statements?

3 Answers  


in job stmt i coded time=(2,30) and in step 1 i coded time=(1,30) and in step i coded time=(1,30), whch one executes first and what happens if step1 and step2 time executes and wht about the remaining time if step and step2 executes

4 Answers  


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

2 Answers   Ocwen,


what is the difference between perform varying and perform

1 Answers  


What is the use of the utility DFSRRC00 in the JCL?

2 Answers   Convergys,


How many positional parameters are there in job statement?

4 Answers  


Is there a way to check for an empty file in JCL other than using IEBCOMPR and the command PRINT COUNT(1)?

8 Answers  


what is the function of spool command?

4 Answers  


Explain the purpose of dd dummy statement?

1 Answers  


Categories