Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
I have a GDG with 3 generations as follows

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: I have a GDG with 3 generations as follows
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    Post subject: Re: I have a GDG with 3 generations as follows
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

Moderator Team Head


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

PostPosted: Fri May 27, 2005 3:35 pm    Post subject: Re: I have a GDG with 3 generations as follows
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    Post subject: Re: I have a GDG with 3 generations as follows
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: 141
Location: South Africa

PostPosted: Fri May 27, 2005 5:00 pm    Post subject: Re: I have a GDG with 3 generations as follows
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

Moderator Team Head


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

PostPosted: Fri May 27, 2005 6:13 pm    Post subject: Re: I have a GDG with 3 generations as follows
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    Post subject:
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: 141
Location: South Africa

PostPosted: Mon May 30, 2005 9:42 am    Post subject: Re: I have a GDG with 3 generations as follows
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare each GDG Generations to other... Ayyappa1 JCL & VSAM 13 Tue Jun 28, 2016 1:48 pm
No new posts Editing "member generations"... Ricardo Viegas TSO/ISPF 1 Tue Dec 29, 2015 7:27 pm
No new posts Read all GDG generations, execept las... knobi JCL & VSAM 5 Fri Dec 12, 2014 12:52 am
No new posts Create dynamic gdg generations based ... Aditya Prakash Joshi DFSORT/ICETOOL 12 Tue May 20, 2014 8:13 am
No new posts Copy all the generations of GDG1 to a... Minaxi Singh JCL & VSAM 9 Mon Oct 14, 2013 9:05 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us