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

What is the use of version in GDG's.


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

New User


Joined: 22 May 2009
Posts: 7
Location: bangalore

PostPosted: Tue Jun 23, 2009 2:10 pm
Reply with quote

Hi,

What is the use of version in GDG's.

TNX,
Back to top
View user's profile Send private message
Binaya

New User


Joined: 03 Jul 2007
Posts: 77
Location: Hyderabad

PostPosted: Tue Jun 23, 2009 2:34 pm
Reply with quote

Welcome to this forum srinivasa.

This is a basic question which you can get going through manuals or you can get browsing.

Prior asking something lets try out of our own.
Back to top
View user's profile Send private message
kumar40322

New User


Joined: 25 Apr 2009
Posts: 15
Location: Hyderabad

PostPosted: Tue Jun 23, 2009 2:44 pm
Reply with quote

Srinivas,

if u r working on report generation programs and u need to keep all the data on daily basis, then u need GDG's. For more information u can refer JCL manuals.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 2:55 pm
Reply with quote

Srinivasa,

Hi and welcome to the forums.

From the manuals

Quote:
A generation data set is one of a collection of successive, historically related, cataloged data sets, known as a generation data group (GDG). The system keeps track of each data set in a generation data group as it is created, so that new data sets can be chronologically ordered and old ones easily retrieved.


To access the manuals click on the "IBM Manuals" link and open the manuals for JCL.

Quote:
What is the use of version in GDG's.


Version no's along with the generation no are used to differentiate the previous day's file from the current day's. This is just an example.

For example, If the Version no for current day's file is 01 then tomorrow's file will be 02.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 23, 2009 3:00 pm
Reply with quote

STOP

Due to the common misconception that generation and version are interchangeable terms for the same thing, Does the OP really mean generation or version.

Because don't forget you can have many generations but ONLY ONE version of a GDS.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Jun 23, 2009 3:08 pm
Reply with quote

See this previous topic.
Back to top
View user's profile Send private message
srinivasa gunja

New User


Joined: 22 May 2009
Posts: 7
Location: bangalore

PostPosted: Tue Jun 23, 2009 3:20 pm
Reply with quote

I am verifying the manuals also.

For Eg: GDG base like AS.BV.G001V00 and presently version no is 00 and i dint come across how the version will be incremented in JCL but generally generation will be incremented.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 23, 2009 3:26 pm
Reply with quote

srinivasa gunja wrote:
I am verifying the manuals also.
For Eg: GDG base like AS.BV.G001V00 and presently version no is 00 and i dint come across how the version will be incremented in JCL but generally generation will be incremented.

Please take the time to read the thread referred to in Kevins previous post
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jun 23, 2009 3:44 pm
Reply with quote

srinivasa gunja wrote:
GDG base like AS.BV.G001V00 and presently version no is 00 and i dint come across how the version will be incremented in JCL but generally generation will be incremented.
That's correct, with a little correction, in your base definition this "G001V00" should be "G0001V00".

If generation AS.BV.G0001V00 is cataloged and you now create and catalog AS.BV.G0001V01, this is just another DSN but as the "base" is same, the new entry is cataloged in the location previously occupied by AS.BV.G0001V00. The old entry is removed from the catalog, to make room for the newer version, and may or may not be scratched depending on what limit processing options are specified for the GDG base.

And yes, I echo Expat
Quote:
Please take the time to read the thread referred to in Kevins previous post
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Jun 23, 2009 4:00 pm
Reply with quote

Hi Anuj,

shouldn't this
Quote:
A.B.C.G0005V01
be
Quote:
AS.BV.G0001V01



Gerry
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jun 23, 2009 4:04 pm
Reply with quote

Yes that should be -- my mistake. icon_redface.gif

Corrected.
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 isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Copying GDG version(all/few) from pro... CLIST & REXX 13
No new posts XMITIP Latest Version JCL & VSAM 2
No new posts How to determine TLS/SSL version in m... TSO/ISPF 2
Search our Forums:

Back to Top