Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What wll be the next version of GDG?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
Amolondhe007
Warnings : 1

New User


Joined: 16 Apr 2007
Posts: 50
Location: Pune

PostPosted: Mon Aug 10, 2009 2:37 pm    Post subject: What wll be the next version of GDG?
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    Post subject:
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: 50
Location: Pune

PostPosted: Mon Aug 10, 2009 2:51 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Aug 10, 2009 3:54 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Mon Aug 10, 2009 4:30 pm    Post subject: Reply to: What wll be the next version of GDG?
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: 7914
Location: Bellevue, IA

PostPosted: Mon Aug 10, 2009 5:11 pm    Post subject:
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    Post subject: Reply to: What wll be the next version of GDG?
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: 8593
Location: Back in jolly old England

PostPosted: Mon Aug 10, 2009 7:50 pm    Post subject:
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    Post subject: Reply to: What wll be the next version of GDG?
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

Site Director


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

PostPosted: Mon Aug 10, 2009 8:39 pm    Post subject:
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    Post subject: Reply to: What wll be the next version of GDG?
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

Site Director


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

PostPosted: Mon Aug 10, 2009 11:35 pm    Post subject:
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    Post subject: Reply to: What wll be the next version of GDG?
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

Site Director


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

PostPosted: Tue Aug 11, 2009 12:10 am    Post subject:
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: 7914
Location: Bellevue, IA

PostPosted: Tue Aug 11, 2009 12:18 am    Post subject:
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    Post subject: Reply to: What wll be the next version of GDG?
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: 50
Location: Pune

PostPosted: Wed Aug 12, 2009 3:57 pm    Post subject: Reply to: What wll be the next Generation of GDG?
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

Senior Member


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

PostPosted: Wed Aug 12, 2009 5:39 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 12, 2009 6:01 pm    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Is there a time Version of DATEDIFF ? Bill Woodger DFSORT/ICETOOL 1 Wed Aug 17, 2016 7:06 pm
No new posts Syncsort version supporting FINDREP c... juares castro SYNCSORT 9 Tue Aug 09, 2016 6:54 pm
No new posts Faccing issues while creating a GDG V... sravindra_s JCL & VSAM 5 Thu Jun 23, 2016 11:26 am
No new posts Fujitsu Cobol 85 to IBM Cobol (Any ve... umakalikiri COBOL Programming 4 Fri Apr 15, 2016 7:40 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us