IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Difference between a version and generation in a GDG


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
deepak.vl

New User


Joined: 17 Feb 2007
Posts: 38
Location: Hyderabad

PostPosted: Mon Feb 19, 2007 7:05 am
Reply with quote

Hi All,
Can anybody explain the difference between a version and generation in a GDG.

Thanks,
Deepak
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Feb 19, 2007 7:20 am
Reply with quote

Go here....http://ibmmainframes.com/viewtopic.php?t=18056&highlight=difference+version+generation+gdg
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Feb 19, 2007 11:58 am
Reply with quote

Hi Deepak,

AGeneration is used to reference one dataset of a Generation Data Group (GDG).

A Version is what most people with GDG questions posting here use to reference a Generation.

It's an inside joke. Actually, a Version references a different instance of the SAME Generation. For example, if you created a Generation - prod.myds.g0003V00 and found the data was in error, you could recreate the Generation with a new version number (G0003V01) and it would replace the Generation (G0003V00) with the erroneous data and keep the same place in the GDG as the original (V00). The system automatically deletes the old Version.

BTW, this is rarely used in practice, so check with your supervisor before attemping this.
Back to top
View user's profile Send private message
deepak.vl

New User


Joined: 17 Feb 2007
Posts: 38
Location: Hyderabad

PostPosted: Sat Feb 24, 2007 10:17 pm
Reply with quote

Thanks mmwife.
But to create a version of a generation, how do we write a JCL? In other way, how do we create a different version of a generation, either manually or from JCL.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sat Feb 24, 2007 10:40 pm
Reply with quote

deepak.vl wrote:
But to create a version of a generation, how do we write a JCL? In other way, how do we create a different version of a generation, either manually or from JCL.
Define it using the GnnnVnn instead of the (+n).
Back to top
View user's profile Send private message
deepak.vl

New User


Joined: 17 Feb 2007
Posts: 38
Location: Hyderabad

PostPosted: Sun Feb 25, 2007 12:49 am
Reply with quote

William Thompson wrote:
deepak.vl wrote:
But to create a version of a generation, how do we write a JCL? In other way, how do we create a different version of a generation, either manually or from JCL.
Define it using the GnnnVnn instead of the (+n).

Thanks William. I have one more question.
But will this automatically uncatalog the older version?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Feb 25, 2007 12:59 am
Reply with quote

deepak.vl wrote:
I have one more question.
But will this automatically uncatalog the older version?
I know that has been answered, a search would help you, but I think it doesn't uncatalog the V00, but I think that when refering to the Gnnn with (-n), it ignores the V00 and takes the latest Vnn (I think).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Timestamp difference and its average ... DB2 11
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Difference when accessing dataset in ... JCL & VSAM 7
Search our Forums:

Back to Top