Generation and Version of GDG - and confusion?

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
Prakash Jha
Registered Member
Posts: 62
Joined: Sat Jun 29, 2013 1:45 pm
India

Generation and Version of GDG - and confusion?

Post by Prakash Jha »

Hi,

I got confuse about generation and version -- what is the difference between Generation and Version of GDG. When does generation number increments? And when does version number increment - are they both necessary?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Generation and Version of GDG - and confusion?

Post by Robert Sample »

A.B.C.G0001V00 references GDG base A.B.C and generation 1. Version 0 is normal and typical. The ONLY way to create version 01 is to write to A.B.C.G0001V01 -- if you do so, the system will uncatalog A.B.C.G0001V00 and catalog A.B.C.G0001V01 in its place. A GDG allows you to define up to 255 generations in the catalog. Specifying A.B.C(+1) indicates to the system that you are going to create the next generation; A.B.C(0) means you are referencing the most recently created generation. Specifying A.B.C (with no relative generation) indicates to the system that you want all generations, starting with the most recent and working back to the oldest.

When a GDG adds a generation, and there are already the limit in the catalog, the OLDEST generation "rolls off" the GDG and will no longer be cataloged. Depending upon the way the GDG is set up, that generation may be deleted from disk / tape when rolled off.

Generation and version are both necessary -- generations will increment any time (+1) is specified but versions must be manually incremented by GxxxxVyy in the JCL.
Prakash Jha
Registered Member
Posts: 62
Joined: Sat Jun 29, 2013 1:45 pm
India

Re: Generation and Version of GDG - and confusion?

Post by Prakash Jha »

Thanks Robert. This is great explanation, appreciate your help...:)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”