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

What is version number of a generation


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
akashs

New User


Joined: 24 Nov 2005
Posts: 49
Location: chennai

PostPosted: Sun Nov 27, 2005 5:12 pm
Reply with quote

Hi,

In an interview ,they asked me when the version number of a particular
generation changes..plz explain in detail...

regards,
akash
Back to top
View user's profile Send private message
aklima

New User


Joined: 25 Nov 2005
Posts: 18
Location: uae

PostPosted: Sun Nov 27, 2005 9:11 pm
Reply with quote

well the version number changes when a new generation is created. ex if we create for suppose an year then let us start with month jan when it was the new one then it was given as +1 then when feb was created then it became 0 as now feb is +1it goes on from 0 to negative value until it gets deleted or scrached.
i hope this might be the answer u needed
bye
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Nov 28, 2005 12:53 am
Reply with quote

There's been a great deal of misuse of GDG terms in this forum, so it's important to get the definitions straight before we begin.

A Generation Data Group is a collection of Generation Datasets. A Generation Dataset can have more than one Version, but only one version for each Generation Dataset can exist at any given time.

For e.g. Gen Dataset X.Y.Z.G0006V00 can be replaced by X.Y.Z.G0006V01 but G0006V00 will no longer exist after G0006V01 is created.

So given these definitions, a new version can be created as below:

Suppose you find that a daily job was run with the wrong parm 3 days ago. The subsequent 2 days were run correctly, but the O/P of day1 is NG. So now your GDG looks like this:
.
.
.
X.Y.Z.G0031V00 (NG dataset)
X.Y.Z.G0032V00
X.Y.Z.G0033V00

To maintain the integrity of the GDG you can recreate Gen 31 by rerunning the job like this:

//s1 exec pgm=thepgm,parm=goodparm'
//OPFILE dd dsn=X.Y.Z.G0031V01,...

When the job ends the GDG looks like this:
.
.
.
X.Y.Z.G0031V01 (recreated dataset)
X.Y.Z.G0032V00
X.Y.Z.G0033V00

P.S. If you want to you can copy the bad generation before you start the recreation, JIC.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top