G0001V00: when would you change the version from 00 to 01?

All sort of Mainframes Interview Questions.
Post Reply
Abhay Gadkari
New Member
Posts: 2
Joined: Sat Aug 16, 2014 10:17 pm

G0001V00: when would you change the version from 00 to 01?

Post by Abhay Gadkari »

Hi,

This is asked in an interview that consider a GDG like G0001V00: when would you change the version from 00 to 01? My answer was, I have never done it but obviously the interviewer was looking for some better answer...appreciate if someone can help me in this.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: G0001V00: when would you change the version from 00 to 01?

Post by zprogrammer »

Hi Abhay

Please check this link

viewtopic.php?f=62&t=1740
zprogrammer
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: G0001V00: when would you change the version from 00 to 01?

Post by Robert Sample »

when would you change the version from 00 to 01?
When you need to replace a generation and cannot merely delete the generation and rerun the program that created the generation (for whatever reason -- such as more recent generations have been added to the GDG base). You must specify DSN=A.B.C.GxxxxV01 (that is, you CANNOT use (+1) to specify the new version -- you must give the full data set name including the generation number and V01), along with the usual data set characteristics.
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: G0001V00: when would you change the version from 00 to 01?

Post by Anuj Dhawan »

This is usually not required however in a rare case as Robert has described, you might do this and you should properly document it. OTOH, if generation HLQ.SLQ.G0001V00 is cataloged and you now create and catalog HLQ.SLQ.G0001V01, this is just another DSN but as the "base" is same, the new entry is cataloged in the location previously occupied by HLQ.SLQ.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.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
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 “Interview Questions.”