|
|
| Author |
Message |
meenasomu
New User
Joined: 15 Sep 2005 Posts: 18
|
|
|
|
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 |
|
 |
References
|
|
 |
Kevin
Active User
Joined: 25 Aug 2005 Posts: 254
|
|
|
|
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: 254
|
|
| Back to top |
|
 |
meenasomu
New User
Joined: 15 Sep 2005 Posts: 18
|
|
|
|
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: 254
|
|
|
|
| meenasomu wrote: |
| Is there anyway by which i can have both V00 and V01? |
No, not for the same base. |
|
| Back to top |
|
 |
|
|
|