Posted: Mon Aug 10, 2009 2:37 pm Post subject: What wll be the next version of GDG?

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?
_________________

Posted: Mon Aug 10, 2009 7:37 pm Post subject: Reply to: What wll be the next version of GDG?

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.

Posted: Mon Aug 10, 2009 8:18 pm Post subject: Reply to: What wll be the next version of GDG?

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.

Posted: Mon Aug 10, 2009 11:25 pm Post subject: Reply to: What wll be the next version of GDG?

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)

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).

Posted: Tue Aug 11, 2009 12:02 am Post subject: Reply to: What wll be the next version of GDG?

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..

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.

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.