Hi,
Yesterday I had an interview, the question was the newer version of a GDG gets placed where, I said bottom. But interviewer was not happy.
When I discussed this with my friends, one suggested that, "Possibly, it was not for locating them in ISPF 3.4. It was possibly to do with what if GDG Base is given as input to a program then newer version of a GDG gets placed where... in that chronological order."
So, which generation is read first if GDG base is input?
Which generation is read first if GDG base is input?
-
- Registered Member
- Posts: 15
- Joined: Fri Dec 26, 2014 2:34 pm
- Robert Sample
- Global Moderator
- Posts: 1900
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Which generation is read first if GDG base is input?
Actually, the read order has depended upon the GDGORDER JCL parameter at least since 2017 (z/OS 2.1 approximately). The default order is GDGORDER=LIFO (last in, first out) so the generations will be read in descending generation order (that is, the latest created generation will be read first). With GDGORDER=FIFO, the generations will be read by age (oldest first).
This statement is so vague as to be meaningless. "place where" could be where the GDG is cataloged, or where the data set is stored, or ... When a new generation is created, the generation number will ALWAYS be one higher than the previous generation (unless that generation was 9999 in which case the new generation number will be 0001).the newer version of a GDG gets placed where
-
- Registered Member
- Posts: 15
- Joined: Fri Dec 26, 2014 2:34 pm
Re: Which generation is read first if GDG base is input?
Thanks Robert.
Question is vague actually and I could not answer well. GDGORDER is a new concept, thanks for sharing it.
Question is vague actually and I could not answer well. GDGORDER is a new concept, thanks for sharing it.
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