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

I have a GDG with 3 generations as follows


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vbhat

New User


Joined: 29 Apr 2005
Posts: 38

PostPosted: Fri May 27, 2005 12:43 pm
Reply with quote

I have a GDG with 3 generations as follows

USERID.GROUP.TYPE.G0001V00
USERID.GROUP.TYPE.G0002V00
USERID.GROUP.TYPE.G0003V00

My doubt is , when and how version part is going to be incremented.

i.e .
USERID.GROUP.TYPE.G0003V01
USERID.GROUP.TYPE.G0003V02
Back to top
View user's profile Send private message
pbhaskar

New User


Joined: 15 Mar 2005
Posts: 2

PostPosted: Fri May 27, 2005 3:25 pm
Reply with quote

While creating a Generation Dataset, u can manually hardcode the version number also. In trhat way u can change the version number.
But at any given time only one version is going to exist.

When u create USERID.GROUP.TYPE.G0003V02,then USERID.GROUP.TYPE.G0003V01 will be lost.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri May 27, 2005 3:35 pm
Reply with quote

Quote:

when and how version part is going to be incremented

When is whenever you rename the dataset.
How is via an ALTER command:
Code:

//RENAME EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
  ALTER USERID.GROUP.TYPE.G0003V00 NEWNAME(USERID.GROUP.TYPE.G0003V01)

Just remember that you are only allowed one version of a generation.
Back to top
View user's profile Send private message
suzeet

New User


Joined: 16 May 2005
Posts: 54

PostPosted: Fri May 27, 2005 5:00 pm
Reply with quote

It is OK that only one version number will be present. Then why V00 is there? What is it's significance?

And also as I know maximum GDG limit is 255. Then why generation number is four digit as it can be accomodate only 255 generations
Back to top
View user's profile Send private message
jkbytes

Active User


Joined: 19 Feb 2005
Posts: 139
Location: South Africa

PostPosted: Fri May 27, 2005 5:00 pm
Reply with quote

Hi,

Why should we insist on changing the version, when the task supposed to be acheived by the GDG is acheived properly.

May i know in which scenario we may encounter this situation?

Thanks & Regards,

JKBYTES.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri May 27, 2005 6:13 pm
Reply with quote

suzeet & jkbytes, your questions have been asked and answered before, so I'm not going to comment. Do a search and you'll find them. However suzeet, you are somewhat misinformed. Yes, you can only define up to 255 generations. However, all that means is that you can only refer to a generation dataset by it's relative generation number for the last 255 entries (0 to -254). You can, if the base is properly defined, catalog and access (by the explicit generation name) up to 9,999 generation datasets. That is why the generation number allows for 4 digits.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat May 28, 2005 9:58 pm
Reply with quote

The Version # is one of those things that "sounded like a good idea at the time". I've never seen it used.

The idea was that if an error was found in the data of a generation some time after it was created, a corrected version (V01) could replace it and the generation sequence would be unaffected.

The replacement process could occur even after the next generation(s) were created.
Back to top
View user's profile Send private message
jkbytes

Active User


Joined: 19 Feb 2005
Posts: 139
Location: South Africa

PostPosted: Mon May 30, 2005 9:42 am
Reply with quote

Hi Jack,

Thats a real nice explanation. Hope it was helpful to others as well.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Rexx to list generations of GDGs and ... CLIST & REXX 3
No new posts Compare each GDG Generations to other... JCL & VSAM 13
No new posts Editing "member generations"... TSO/ISPF 1
No new posts Read all GDG generations, execept las... JCL & VSAM 5
No new posts Create dynamic gdg generations based ... DFSORT/ICETOOL 12
Search our Forums:

Back to Top