CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS MAINFRAME JCL DETAILS
Question :
What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB? GDG stands for generation data group. It is a dataset with versions that can be referenced absolutely or relatively. It is defined by an IDCAMS define generation datagroup execution.


Category JCL Interview Questions
Rating (4.8) By 10 users
Added on 7/22/2006
Views 1065
Rate it!
Answers:

It is defined using an IDCAMS command DEFINE GENERATIONDATAGROUP or DEF GDG for short. Not many parameters, just a maxgeneration as I recall.

If you create a GDG called MY.GDG, this first instance will be cataloged as MY.GDG.G00001V00 and onwards. Each time you reference one you can do so by absolute reference, as above, or relative. MY.GDG(0) which is the most recent generation. MY.GDG(-1) is the next oldest, and so on.

To create a new GDG generation, you code in your JCL ..DSN=MY.GDG(+1), DISP=(NEW,CATLG) etc as normal. Whatever you created as a max generations, the last one gets dropped off (uncataloged and deleted) assuming you have that many generations.

They are useful for backups and the like. If you run a particular batch job on a daily basis, then its often the case that you have a 5 generation (or 7?!) GDG to capture your output or parameters etc. You then have a week to print them or reference them.





If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
Describe the JOB statement, its meaning, syntax and significant keywords.

View Answer
How will you call the return code of JCL ?

View Answer
How can be determined if date contained in the header of a file is date current date?



View Answer
What is the difference between BLKSIZE and LRECL?

View Answer
How to by pass the step without cond parameter

View Answer
i have a main program in a pds i.e a.b.c and sub program is in a.b.d.

the question is how would be the dd statement

View Answer
Why we use export-import over repro?

View Answer
What is the advatage of coding RECFM=F over RECFM=FB.

I know the concept that RECFM=FB is fast, easily accessable due to the fact that FEW (not 1 records) records are allocated to each BLOCK. Then who would like to specify RECFM=F? And why?

View Answer
What is the difference between DISP=OLD,DISP=MOD & DISP=NEW

View Answer
How to invoke a jcl(with all control cards, like job crad and all) from another jcl

View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL JCL Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/7105/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.78