View previous topic :: View next topic
|
Author |
Message |
crrindia
Active User
Joined: 02 Jul 2005 Posts: 124 Location: Gurgaon
|
|
|
|
Hi All, I am finding that only Generation Numbers are changing when we allocating the new GDG's. I never find changing the version numbers. Please let me know How these VERSION numbers will change?
Thanks!
RAthna. |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
Hi crrindia,
Using JCl, In normal conditions, the version numbers can't be changes.
Rename is the only choice to change the Version number of a GDG.
I remember......that some times MVS can create GDG with change in GDG versions as a backup...for the exising version.
~Vamsi |
|
Back to top |
|
|
crrindia
Active User
Joined: 02 Jul 2005 Posts: 124 Location: Gurgaon
|
|
|
|
Hi Shrivamsi, I don't want to RENAME it. I just want the version number with the Generation Numbers like shown below.
@58025.SAMP.GDG.G0017V00
@58025.SAMP.GDG.G0017V01
@58025.SAMP.GDG.G0017V02
@58025.SAMP.GDG.G0017V03
@58025.SAMP.GDG.G0017V04
Thanks!
Rathna. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You are allowed only one version per generation. |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
As of my knowledge, it'z not possible to change the version number thru JCL.....DISP(NEW,CATLOG,).
~Vamsi |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You have at least three choices to use to alter a GDG's version number.
#1. You can just copy the current dataset:
Code: |
//STEP0001 EXEC PGM=IEBGENER
//SYSUT1 DD DISP=SHR,DSN=@58025.SAMP.GDG.G0017V00
//SYSUT2 DD DSN=@58025.SAMP.GDG.G0017V01,
// DISP=(,CATLG,DELETE),UNIT=SYSDA,SPACE=...
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
|
#2. You can use an IDCAMS ALTER:
Code: |
//STEP0001 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALTER '@58025.SAMP.GDG.G0017V00' NEWNAME('@58025.SAMP.GDG.G0017V01')
/*
|
#3. As already stated, you can use RENAME:
Code: |
//STEP0001 EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
RENAME '@58025.SAMP.GDG.G0017V00' '@58025.SAMP.GDG.G0017V01'
/*
|
|
|
Back to top |
|
|
crrindia
Active User
Joined: 02 Jul 2005 Posts: 124 Location: Gurgaon
|
|
|
|
Hi Superk and Shreevamsi, Thank you very much for your continuous support. Now I got cleared all of my doubts regarding to the versions of GDGs.
Thanks!
Rathna. |
|
Back to top |
|
|
|