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
 
To create New Version of a GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
meenasomu

New User


Joined: 15 Sep 2005
Posts: 18

PostPosted: Thu Oct 20, 2005 8:57 pm    Post subject: To create New Version of a GDG
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
References
Kevin

Active User


Joined: 25 Aug 2005
Posts: 254

PostPosted: Thu Oct 20, 2005 10:04 pm    Post subject: Re: To create New Version of a GDG
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: 254

PostPosted: Thu Oct 20, 2005 11:23 pm    Post subject: Re: To create New Version of a GDG
Reply with quote

You might want to read this document:

http://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: 18

PostPosted: Fri Oct 21, 2005 9:27 pm    Post subject: Re: To create New Version of a GDG
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: 254

PostPosted: Sat Oct 22, 2005 12:16 am    Post subject: Re: To create New Version of a GDG
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1