View previous topic :: View next topic
|
Author |
Message |
Amolondhe007 Warnings : 1 New User
Joined: 16 Apr 2007 Posts: 49 Location: Pune
|
|
|
|
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 |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
I think you mean to say Generations here....
Quote: |
GDG will be executed successfully |
What does this mean? |
|
Back to top |
|
|
Amolondhe007 Warnings : 1 New User
Joined: 16 Apr 2007 Posts: 49 Location: Pune
|
|
|
|
Yes, Sambhaji,
Versions means Generations.
and regarding your second concern...interviewer mean to say step... |
|
Back to top |
|
|
mallik4u
New User
Joined: 17 Sep 2008 Posts: 75 Location: bangalore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
sankaranarayanan parasura
New User
Joined: 28 Oct 2007 Posts: 10 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
sankaranarayanan parasura
New User
Joined: 28 Oct 2007 Posts: 10 Location: chennai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
sid_aec
New User
Joined: 01 Jul 2008 Posts: 60 Location: Kolkata
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
sid_aec
New User
Joined: 01 Jul 2008 Posts: 60 Location: Kolkata
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
sid_aec
New User
Joined: 01 Jul 2008 Posts: 60 Location: Kolkata
|
|
|
|
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 |
|
|
Amolondhe007 Warnings : 1 New User
Joined: 16 Apr 2007 Posts: 49 Location: Pune
|
|
|
|
Sorry to all...for using word 'Version'.
It is 'Generations' in correct terminology.
Thanks Sankaranarayan for your explaination about answer. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
Now what will be the current versions for GDG1,GDG2,GDG3,GDG4? |
Technically, the answer would be 00 |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
expat wrote: |
Technically, the answer would be 00 |
oh gosh, this one liner is attractive.. Expat -- have you been a "caption writer" as well once upon a time... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I like that answer, expat! |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
have you been a "caption writer" as well once |
more like 'captive'... |
|
Back to top |
|
|
|