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 is the syntax of JCL statement?

0 Answers  


Which is the most widely used batch performance monitor for DB2?

2 Answers  


When cursor is not closed what is the error?

3 Answers   IBM,


wht happens if blksize = 0 and lrec = 0 ?

1 Answers   TCS,


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

0 Answers  






When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

0 Answers  


How to execute a set of JCL statements from a COBOL program ?

6 Answers  


what is meant by jobtrac?

4 Answers   CSC,


what is inrec fields and outrec fields in sorting

3 Answers   Fidelity,


In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???

10 Answers   Perot Systems,


How to print the Output to SPOOL using MSGCLASS and SYSOUT ?

4 Answers   IBM,


1.How to check for the errors using TYPRUN=SCAN?What will be the output if we give TYPRUN=SCAN?

11 Answers  


Categories