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

What wll be the next version of GDG?


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amolondhe007
Warnings : 1

New User


Joined: 16 Apr 2007
Posts: 49
Location: Pune

PostPosted: Mon Aug 10, 2009 2:37 pm
Reply with quote

Hi,

Recently,I had one interview question.
Q. Suppose i have 4 GDG files in my JOB
ex //GDG1....
----
//GDG2....
----
//GDG3....
----
//GDG4...
....
Each GDG has currently 10 Versions. Suppose my 1st,2nd and 4th GDG will be executed successfully and 3rd one will not executed due to some reason.
Now what will be the current versions for GDG1,GDG2,GDG3,GDG4?
_________________
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Aug 10, 2009 2:42 pm
Reply with quote

Quote:
10 Versions

I think you mean to say Generations here....

Quote:
GDG will be executed successfully

icon_eek.gif icon_eek.gif What does this mean?
Back to top
View user's profile Send private message
Amolondhe007
Warnings : 1

New User


Joined: 16 Apr 2007
Posts: 49
Location: Pune

PostPosted: Mon Aug 10, 2009 2:51 pm
Reply with quote

Yes, Sambhaji,

Versions means Generations.

and regarding your second concern...interviewer mean to say step...
Back to top
View user's profile Send private message
mallik4u

New User


Joined: 17 Sep 2008
Posts: 75
Location: bangalore

PostPosted: Mon Aug 10, 2009 3:13 pm
Reply with quote

Hi,

Is the job trying to create new generations for all the 4 GDGs or is that just referencing them in the respective steps?

What is the DISP parameter coded for the GDG generations which are getting created?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Aug 10, 2009 3:54 pm
Reply with quote

Amolondhe007 wrote:

Versions means Generations.

NO, it certainly does NOT !!!

/RANT ON

When talking about GDS it is important to use the correct terminology, as both version and generation are both valid in terms of a GDS.

It is a well known fact that only one version of a GDS may exist at any one time, however, multiple generations may exist together.

Please learn and use the correct terminology when posting, as using the wrong term can cause confusion and possibly delay a resolution to your problem

/RANT OFF
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Mon Aug 10, 2009 4:30 pm
Reply with quote

Amol, after reading the question a couple of times, do YOU think that there is enough information provided to even attempt an answer?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Aug 10, 2009 5:11 pm
Reply with quote

Quote:
Now what will be the current versions for GDG1,GDG2,GDG3,GDG4?
Uh, where did you tell us what the current generations (not versions) were for each file BEFORE the job ran?
Back to top
View user's profile Send private message
sankaranarayanan parasura

New User


Joined: 28 Oct 2007
Posts: 10
Location: chennai

PostPosted: Mon Aug 10, 2009 7:37 pm
Reply with quote

1) If all the GDG's are getting created in same JOB step, then if any one file creation fails the step abends and none of the file will be created in next version and it will be 10 for all. (I think this wont be the case you have been asked on your interview)

2) There are 4 JOB steps and each creating GDG files after processing. If step 1 & 2 is successful the GDG 1&2 will have 11 versions and STEP 3 abends and file will not be created and it will have 10 versions. Step 4is not processed and will have 10 only.

Please respond if I am not right.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Aug 10, 2009 7:50 pm
Reply with quote

sankaranarayanan parasura

Please read, reread, and read again my previous post regarding versions and generations.
Read it until the facts sink into your brain.

AND THEN USE THE CORRECT TERMINOLOGY !!!
Back to top
View user's profile Send private message
sankaranarayanan parasura

New User


Joined: 28 Oct 2007
Posts: 10
Location: chennai

PostPosted: Mon Aug 10, 2009 8:18 pm
Reply with quote

Many Thanks Expat,

Sorry for using versions in my earlier post. As both generations and versions are valid for GDG Data sets(GDS), I got from Expat that for answering this question, the question to be understand correctly.

If any doubt on GDS generation/versions u can click the link below

Absolute Generation and Version Numbers
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 10, 2009 8:39 pm
Reply with quote

Hello,

Quote:
As both generations and versions are valid for GDG Data sets(GDS),
Valid - well, ummm, yes. Mis-used mostly, but valid. Let's say that about 99.99% of the time, "version" should not be mentioned.

Versions have nothing whatsoever to do with this topic/question other than that the word version should not have been used anywhere in the question or the answer. . .
Back to top
View user's profile Send private message
sid_aec

New User


Joined: 01 Jul 2008
Posts: 60
Location: Kolkata

PostPosted: Mon Aug 10, 2009 11:25 pm
Reply with quote

Though the initial question has lack of info but if it is during telephonic then u might have faced like this way.What I understand from this part u mentioned:
"Each GDG has currently 10 Versions. Suppose my 1st,2nd and 4th GDG will be executed successfully and 3rd one will not executed due to some reason.
Now what will be the current versions for GDG1,GDG2,GDG3,GDG4? "

Generation group -1 version will be 11
Generation group -2 version will be 11
Generation group -3 version will be 10
Generation group -4 version will be 11(if this step coded with cond=even something like that)
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 10, 2009 11:35 pm
Reply with quote

Hello,

Are you paying any attention whatsoever?

Quote:
Each GDG has currently 10 Versions.
No, it doesn't.
Quote:
Generation group -1 version will be 11
Generation group -2 version will be 11
Generation group -3 version will be 10
Generation group -4 version will be 11(if this step coded with cond=even something like that)

No - they will not

To repeat - "version"s has no place in this topic. . .

Just because many ignorant people use improper terminology, this does not make it acceptable (or correct).
Back to top
View user's profile Send private message
sid_aec

New User


Joined: 01 Jul 2008
Posts: 60
Location: Kolkata

PostPosted: Tue Aug 11, 2009 12:02 am
Reply with quote

Sorry Dick..
But I was under an impression that if the steps are actually renaming the latest generation with new version like below:

XYZ1.G0001V10-rename to XYZ1.G0001V11
XYZ1.G0001V10-rename to XYZ1.G0001V11
XYZ1.G0001V10-rename to XYZ1.G0001V11
XYZ1.G0001V10-rename to XYZ1.G0001V11

Cause in the question only version is used not generation..so I assumed its just renaming with v11.in that case only one will exist..the steps renamed successfully then the current would be the v11 not v10 will remain for the same generation..

I am sorry may be I assumed wrongly..Please excuse..
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Aug 11, 2009 12:10 am
Reply with quote

Quote:
Sorry Dick..
I am sorry may be I assumed wrongly..Please excuse..

Not to worry - this topic has been so out of kilter that it may never come back to good information icon_confused.gif

Quote:
Cause in the question only version is used not generation..
The original post mentions:
Quote:
Each GDG has currently 10 Versions.
One of the horrible bits of mis-information that is being taught to an entire generation.

Quote:
so I assumed its just renaming with v11.
But i don't see a rename requirement. . .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Aug 11, 2009 12:18 am
Reply with quote

sid_aec: under no circumstances is there ever more than one version of a GDG cataloged. There can be up to 255 cataloged generations but only one version of each generation will be cataloged. And if the version is not V00 then the version must be manually cataloged by the programmer -- the system will not do so. Terminology is key when dealing with a GDG -- do not confuse versions with generations. Changing version 10 (V10) to version 11 (V11) will require a manual catalog process since the generation is not changing.

I also note that nowhere in the original problem statement was it specified that a new generation is being cataloged for each of the four steps. If the job is doing nothing but reading the GDG, no new generations will be cataloged. I also note that while it is implied by the names it is not explicitly stated that the four GDG files are different GDG bases. If they are the same base with (+1), (+2), (+3), and (+4) as the generations being cataloged in the four steps, that would have an impact on the answer.

In other words, as the problem is stated we don't really have enough data to answer completely and precisely. Which, sadly enough, is fairly common with these interview questions.
Back to top
View user's profile Send private message
sid_aec

New User


Joined: 01 Jul 2008
Posts: 60
Location: Kolkata

PostPosted: Tue Aug 11, 2009 12:23 am
Reply with quote

Robert ,
Thats why I told if renamed for same generation and and also i said if renamed to v11 then v10 wont be there...
also I request to excuse for my wrong assumptions....
Back to top
View user's profile Send private message
Amolondhe007
Warnings : 1

New User


Joined: 16 Apr 2007
Posts: 49
Location: Pune

PostPosted: Wed Aug 12, 2009 3:57 pm
Reply with quote

Sorry to all...for using word 'Version'.
It is 'Generations' in correct terminology.

Thanks Sankaranarayan for your explaination about answer.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Aug 12, 2009 5:39 pm
Reply with quote

If the question means these:

1. One JCL
2. 4 steps.
3. Latest generation for all the GDGs in question is of kind **.G0010V00 before job starts.
4. Job executes.
5. Job abends at 3rd step .

Answer is: Step 1 & 2 are executed successfully so the GDGs 1 & 2 will have 11th generation created (**.G0011V00). STEP 3 abends so 4th step will also not execute -- GDG3 and GDG4 will have only 10th generation.

PS. I can not get more layman than this... icon_neutral.gif
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Aug 12, 2009 6:01 pm
Reply with quote

Quote:
Now what will be the current versions for GDG1,GDG2,GDG3,GDG4?

Technically, the answer would be 00 icon_lol.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Aug 12, 2009 6:04 pm
Reply with quote

expat wrote:
Technically, the answer would be 00 icon_lol.gif
oh gosh, this one liner is attractive.. Expat -- have you been a "caption writer" as well once upon a time... icon_biggrin.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 12, 2009 6:15 pm
Reply with quote

I like that answer, expat!
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 12, 2009 6:17 pm
Reply with quote

Quote:
have you been a "caption writer" as well once


more like 'captive'...
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 -> Mainframe Interview Questions

 


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