GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  JCL
Go To First  |  Previous Question  |  Next Question 
 JCL  |  Question 9 of 128    Print  
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.

  
Total Answers and Comments: 6 Last Update: March 31, 2009   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 29, 2005 08:14:12   #1  
Sunitha        

RE: What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB? GDG stands for generati...
Hi How will you refer the same GDG version in different JCL's? Can u pls tell me how will we code that?
 
Is this answer useful? Yes | No
September 11, 2005 19:12:01   #2  
nhenshall Member Since: September 2005   Contribution: 1    

RE: What is a GDG?

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.


 
Is this answer useful? Yes | No
March 31, 2006 04:26:03   #3  
Bibhu        

RE: What is a GDG? How is it referenced? How is it def...

Model DCB is used because to avoid writting the characterstics of the generations repeatedly. The advantage is that we assign the characterstic of a dataset to all the generations by specifying the model DCB.There is a less chance of getting error.

Note: All the generations of a GDG should have the same characterstics.


 
Is this answer useful? Yes | No
May 21, 2007 21:04:54   #4  
kckinney Member Since: May 2007   Contribution: 48    

RE: What is a GDG? How is it referenced? How is it def...
Any new GDG in a job is defined as +1. Other steps in the same job will refer to it as +1. However if the job abends after the allocation step you can restart the job but must change the +1 to 0 in the remaining steps.Of course nearly every scheduling & restart system will take care of this for you.
 
Is this answer useful? Yes | No
June 11, 2007 06:35:19   #5  
sanjay        

RE: What is a GDG? How is it referenced? How is it def...
gdg is a group data set which are related to each other pronounly & functionaly
it smiliar to array which store many type of group data'sets

 
Is this answer useful? Yes | No
March 30, 2009 07:51:40   #6  
nthayyuru Member Since: March 2009   Contribution: 1    

RE: 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

GDG nothing but Generation Data Group means data sets has been generated with version number.

It will be referred as a dataset with version number then only we knows and identifying the dataset when it was created and easily identifying the data is stored in the dataset with help of version number.

BY using the IDCAMS utility we can define the GDG. Before that we can create the GDG base.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape