View previous topic :: View next topic
|
Author |
Message |
meenasomu
New User
Joined: 15 Sep 2005 Posts: 17
|
|
|
|
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 |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
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 |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
Back to top |
|
|
meenasomu
New User
Joined: 15 Sep 2005 Posts: 17
|
|
|
|
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 |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
meenasomu wrote: |
Is there anyway by which i can have both V00 and V01? |
No, not for the same base. |
|
Back to top |
|
|
Vishwamurthy
New User
Joined: 11 Mar 2008 Posts: 57 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
WOW, responding to a thread that has been dormant for over threee years.
Why would you expect to get V01 ? |
|
Back to top |
|
|
Vishwamurthy
New User
Joined: 11 Mar 2008 Posts: 57 Location: India
|
|
|
|
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 . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Any reason to deviate from the norm in creating V00 by creating V01 |
|
Back to top |
|
|
Vishwamurthy
New User
Joined: 11 Mar 2008 Posts: 57 Location: India
|
|
|
|
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 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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
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 |
|
|
|