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

To create New Version of a GDG


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

New User


Joined: 15 Sep 2005
Posts: 17

PostPosted: Thu Oct 20, 2005 8:57 pm
Reply with quote

Hi,

My requirement is to create a new Version of a GDG. I have idea on how to create a new generation. But i dont have any idea on how to create a new Version of GDG.

Can anyone help me in this regard.

Thanks in Advance.

Regards,
Meena.
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Thu Oct 20, 2005 10:04 pm
Reply with quote

There are a few different things you can do. For these examples, I'll presume that you have existing generation dataset 'HLQ.MYGDG.G0001V00' and that you want to increment the version number by 1 to make the new generation dataset 'HLQ.MYGDG.G0001V01':

1. A copy:

Code:

//COPY     EXEC PGM=IEBGENER
//SYSUT1   DD   DSN=HLQ.MYGDG.G0001V00,DISP=SHR
//SYSUT2   DD   DSN=HLQ.MYGDG.G0001V01,DISP=(,CATLG,DELETE),
//         UNIT=DISK,SPACE=(whatever),DCB=MODEL.DSCB
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   DUMMY

or

//COPY     EXEC PGM=IDCAMS
//SYSUT1   DD   DSN=HLQ.MYGDG.G0001V00,DISP=SHR
//SYSUT2   DD   DSN=HLQ.MYGDG.G0001V01,DISP=(,CATLG,DELETE),
//         UNIT=DISK,SPACE=(whatever),DCB=MODEL.DSCB
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   *
  REPRO IFILE(SYSUT1) OFILE(SYSUT2)
/*
or

//COPY     EXEC PGM=SORT
//SORTIN   DD   DSN=HLQ.MYGDG.G0001V00,DISP=SHR
//SORTOUT  DD   DSN=HLQ.MYGDG.G0001V01,DISP=(,CATLG,DELETE),
//         UNIT=DISK,SPACE=(whatever),DCB=MODEL.DSCB
//SYSOUT   DD   SYSOUT=*
//SYSIN    DD   *
  OPTION COPY
/*


2. A rename:

Code:

//RENAME   EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   *
  ALTER 'HLQ.MYGDG.G0001V00' NEWNAME('HLQ.MYGDG.G0001V01')
/*

or

//RENAME   EXEC PGM=IKJEFT01
//SYSTSPRT DD   SYSOUT=*
//SYSTSIN  DD   *
  RENAME 'HLQ.MYGDG.G0001V00' 'HLQ.MYGDG.G0001V01'
/*
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Thu Oct 20, 2005 11:23 pm
Reply with quote

You might want to read this document:

publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/dgt2d430/3.10.2?DT=20040624112123#HDRABGEN9

as a follow-up.
Back to top
View user's profile Send private message
meenasomu

New User


Joined: 15 Sep 2005
Posts: 17

PostPosted: Fri Oct 21, 2005 9:27 pm
Reply with quote

Hi Kevin,

Thanks for the details. This was useful.

The link you gave says that version is mainly used to replace a generation if the data of that particular generation(other than the current generation) changes.

Is there anyway by which i can have both V00 and V01?

Thanks in Advance.

Regards,
Meena.
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Sat Oct 22, 2005 12:16 am
Reply with quote

meenasomu wrote:
Is there anyway by which i can have both V00 and V01?

No, not for the same base.
Back to top
View user's profile Send private message
Vishwamurthy

New User


Joined: 11 Mar 2008
Posts: 57
Location: India

PostPosted: Wed Feb 18, 2009 7:41 pm
Reply with quote

In that case, if I generate new generations, I am not able to maintain the version number as V01 for the next generations.

I have renamed the Generation 1

INUSER2.GDG.G0001V00
to
INUSER2.GDG.G0001V01

and submitted a JCL

//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=INUSER2.GDG(+1),DISP=(NEW,CATLG),
// UNIT=SYSDA,SPACE=(TRK,(2,3),RLSE),
// DCB=(LRECL=80,BLKSIZE=800,RECFM=FB)
//

For this, it generated a new Generation:

INUSER2.GDG.G0002V00
but i was expecting
INUSER2.GDG.G0002V01
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Feb 18, 2009 7:50 pm
Reply with quote

WOW, responding to a thread that has been dormant for over threee years.

Why would you expect to get V01 ?
Back to top
View user's profile Send private message
Vishwamurthy

New User


Joined: 11 Mar 2008
Posts: 57
Location: India

PostPosted: Wed Feb 18, 2009 7:55 pm
Reply with quote

I was searching for a topic like this..
I want to create datasets/generations in version V01..
I found this most relevant.. i went through the IBM link in kevin's post to find not much info about this icon_smile.gif.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Feb 18, 2009 7:58 pm
Reply with quote

Any reason to deviate from the norm in creating V00 by creating V01
Back to top
View user's profile Send private message
Vishwamurthy

New User


Joined: 11 Mar 2008
Posts: 57
Location: India

PostPosted: Wed Feb 18, 2009 8:06 pm
Reply with quote

Kevin wrote:
meenasomu wrote:
Is there anyway by which i can have both V00 and V01?

No, not for the same base.


I have deleted all generations of V00 except for one, which i renamed using one of the procedures in one of the previous posts. The rename was successful.. Now, i have generation of V01.. So the next generations to be created should be of the same version. But the new generations being created are of version V00, against what has been stated in the Quoted text. That is the only deviation I found icon_razz.gif with what is really happening on my mainframe. I cannot say if that would be a deviation from the norm of creating V00s..
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Feb 18, 2009 11:20 pm
Reply with quote

Hello,

Quote:
I cannot say if that would be a deviation from the norm of creating V00s..
Maybe you cannot say this, but it surely is a deviation.

Did a little survey of a few thousand gdg bases on multiple client's systems and none of them has anything other than V00.

Quote:
So the next generations to be created should be of the same version.
V01? What business requirement does this support?
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Feb 18, 2009 11:38 pm
Reply with quote

Rather than "not for the same BASE", Kevin meant to say "not for the same generation".

A GDG base may have many generations and a mix of versions but each generation can have only one version.

The +1 generation after G0001V01 will be G0002V00.
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 How to create a list of SAR jobs with... CA Products 3
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
No new posts COBOL - create and write to output fi... COBOL Programming 0
Search our Forums:

Back to Top