View previous topic :: View next topic
|
Author |
Message |
vbhat
New User
Joined: 29 Apr 2005 Posts: 38
|
|
|
|
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 |
|
|
pbhaskar
New User
Joined: 15 Mar 2005 Posts: 2
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
suzeet
New User
Joined: 16 May 2005 Posts: 54
|
|
|
|
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 |
|
|
jkbytes
Active User
Joined: 19 Feb 2005 Posts: 139 Location: South Africa
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
jkbytes
Active User
Joined: 19 Feb 2005 Posts: 139 Location: South Africa
|
|
|
|
Hi Jack,
Thats a real nice explanation. Hope it was helpful to others as well. |
|
Back to top |
|
|
|