Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
GDG generation define and reference..
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
quanzhong

New User


Joined: 12 Aug 2008
Posts: 37
Location: china

PostPosted: Fri Sep 19, 2008 6:03 pm    Post subject: GDG generation define and reference..
Reply with quote

Hi,
now i am meeting a problem..
in my job can be seen as follows in short.
Code:

step1  //*create a GDG generation refered by program.
//ABSO     DD  DSN=&HLQ..CMS.ABSO.S&BSEG..BKP(+1),
//             DISP=(NEW,CATLG,DELETE),           
//             UNIT=&DISK,SPACE=(CYL,(10,10)),     
//             DCB=(&GDGMOD,RECFM=VB,LRECL=2307)   
//*
......
step5
......
step9 //*use that generation
//ABSI     DD  DSN=&HLQ..CMS.ABSO.S&BSEG..BKP(+1),DISP=OLD
......

unfortunately, my job failed at step5, after getting through all mistakes,
i restarted that job, but job failed again at step9...with collegue's suggestion, I override that statement.
Code:

//ABSI     DD  DSN=&HLQ..CMS.ABSO.S&BSEG..BKP(+0),DISP=OLD

and i got what wanted... though the problem had resolved, but i want to know why, and how to avoid that kind of mistake.

as the job spool has been cleared, so I couldn't provide the error message.. Hope that you all can get my problem..
Back to top
View user's profile Send private message
References
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3544
Location: Brussels once more ...

PostPosted: Fri Sep 19, 2008 6:08 pm    Post subject:
Reply with quote

The relative generation is +1 for the whole job. Once the job ends or abends the +1 then becomes 0 for any restart / reun of the job.
Back to top
View user's profile Send private message
hchinnam

Active User


Joined: 18 Oct 2006
Posts: 68

PostPosted: Fri Sep 19, 2008 6:13 pm    Post subject: Re: GDG generation define and reference..
Reply with quote

quanzhong wrote:


unfortunately, my job failed at step5, after getting through all mistakes,
i restarted that job,



I guess you would have restarted the JOB after STEP1. So the GDG numbers are updated with the version created in previous run (Run that has failed). When you restart the JOB there is no +1 version (as it has already been made version 0). So it has failed.
Back to top
View user's profile Send private message
quanzhong

New User


Joined: 12 Aug 2008
Posts: 37
Location: china

PostPosted: Fri Sep 19, 2008 6:15 pm    Post subject:
Reply with quote

Hi,
can you provide a link on GDG? thanks..
It seems that related material is very limited.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3544
Location: Brussels once more ...

PostPosted: Fri Sep 19, 2008 6:22 pm    Post subject:
Reply with quote

hchinnam

Quote:
I guess you would have restarted the JOB after STEP1. So the GDG numbers are updated with the version created in previous run (Run that has failed). When you restart the JOB there is no +1 version (as it has already been made version 0). So it has failed.

The correct terminology is GENERATION not version.

These two terms are perfectly valid in reference to GDS but with completely different meanings. Please use the correct terms when addressing a question, because if you do not know what you are talking about how can anyone else be expected to.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA

PostPosted: Fri Sep 19, 2008 6:25 pm    Post subject: Reply to: GDG generation define and reference..
Reply with quote

3.10 Chapter 29. Processing Generation Data Groups from the z/OS V1R7.0 DFSMS Using Data Sets manual.

APPENDIX1.2 Appendix B. Generation Data Sets from the z/OS V1R6.0 MVS JCL User's Guide.
Back to top
View user's profile Send private message
hchinnam

Active User


Joined: 18 Oct 2006
Posts: 68

PostPosted: Fri Sep 19, 2008 6:28 pm    Post subject:
Reply with quote

expat,

point noted.

However one quick question. Do you know when VERSION number of a GDG generation changes. I never seen one with a value other then zero.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA

PostPosted: Fri Sep 19, 2008 6:50 pm    Post subject:
Reply with quote

hchinnam wrote:
However one quick question. Do you know when VERSION number of a GDG generation changes. I never seen one with a value other then zero.


From the above links:

Quote:

The number of generations and versions is limited by the number of digits in the absolute generation name; that is, there can be 9,999 generations. Each generation can have 100 versions.
The system automatically maintains the generation number. The number of generations kept depends on the size of the generation index. For example, if the size of the generation index permits ten entries, the ten latest generations can be maintained in the GDG.

The version number lets you perform normal data set operations without disrupting the management of the GDG. For example, if you want to update the second generation in a 3-generation group, replace generation 2, version 0, with generation 2, version 1. Only one version is kept for each generation.

You can catalog a generation using either absolute or relative numbers. When a generation is cataloged, a generation and version number is placed as a low-level entry in the GDG. To catalog a version number other than V00, you must use an absolute generation and version number.

You can catalog a new version of a specific generation automatically by specifying the old generation number along with a new version number. For example, if generation A.B.C.G0005V00 is cataloged and you now create and catalog A.B.C.G0005V01, the new entry is cataloged in the location previously occupied by A.B.C.G0005V00.
Back to top
View user's profile Send private message
hchinnam

Active User


Joined: 18 Oct 2006
Posts: 68

PostPosted: Fri Sep 19, 2008 6:53 pm    Post subject:
Reply with quote

Thanks Kevin
Back to top
View user's profile Send private message
quanzhong

New User


Joined: 12 Aug 2008
Posts: 37
Location: china

PostPosted: Fri Sep 19, 2008 7:19 pm    Post subject:
Reply with quote

Hi superk

thanks.
Back to top
View user's profile Send private message
Moved: Fri Sep 19, 2008 7:21 pm by superk From JCL to SMS & VSAM
arcvns

Senior Member


Joined: 17 Oct 2006
Posts: 759
Location: Chennai, India

PostPosted: Fri Sep 19, 2008 8:21 pm    Post subject:
Reply with quote

Kevin,

Got a bit confused between these....... icon_rolleyes.gif

Quote:
Each generation can have 100 versions.

Quote:
Only one version is kept for each generation.

Thanks,
Arun
Back to top
View user's profile Send private message
Anuj D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2229
Location: Phoenix, AZ

PostPosted: Sat Sep 20, 2008 1:07 am    Post subject:
Reply with quote

Arun,

In GxxxxVyy, "yy" can have values from "00" to "99" so in total 100 differnt versions mathematically, but only one version (in SMS) can exist for a given GDG.

If generation A.B.C.G0005V00 is cataloged and you now create and catalog A.B.C.G0005V01, the new entry is cataloged in the location previously occupied by A.B.C.G0005V00. The old entry is removed from the catalog, to make room for the newer version, and may or may not be scratched depending on what limit processing options are specified for the GDG base.

For SMS DSNs, if scratch is specified, the older version is scratched from the volume. If noscratch is specified, or if the attempt to scratch the DSCB fails, the older version is not scratched and the generation data sets is recataloged as a non-VSAM data set with the GnnnnVnn name not associated with the GDG base.

Try allocating a new "version" for an existing GDG & look the entris in 3.4, things will be rather clear.

For non-SMS DSNs, if noscratch is specified for the base, the older GDS version is not scratched.
Back to top
View user's profile Send private message
quanzhong

New User


Joined: 12 Aug 2008
Posts: 37
Location: china

PostPosted: Sat Sep 20, 2008 3:19 am    Post subject:
Reply with quote

Hi, Anuj
now i have a question, in what situation cause to the change of GDG version, update? rename? or other ways.. and want to know GDG version's advantage.. because we seldom see other version but ***v00.
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8733
Location: 221 B Baker St

PostPosted: Sat Sep 20, 2008 5:16 am    Post subject:
Reply with quote

Hello,

It is probably enough to know that is such a thing as a version. It is not something you are likely to use for your work. I would surely not look for some "problem" that required me to use this "solution".

I don't know that there is any "advantage". It is just a feature - one that is not often used. As you mentioned: "because we seldom see other version but ***v00".

It is probably most important to remember that these are Generation Data Sets and when a new entry is cataloged (+1), this is a new generation icon_smile.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3544
Location: Brussels once more ...

PostPosted: Sat Sep 20, 2008 2:49 pm    Post subject:
Reply with quote

I must admit that in 30+ years on IBM mainframes I can honestly admit to never ever using a version of a GDS.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 HoursGoto page 1, 2  Next
Page 1 of 2