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 is version number of a generation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: What is version number of a generation
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    Post subject: re:help me to solve with my version confusion
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

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 Sequence number add in SORT pshongal SYNCSORT 3 Fri Sep 02, 2016 3:32 pm
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
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


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