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

How the Version Numbers are changed in GDG's.


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

Active User


Joined: 02 Jul 2005
Posts: 124
Location: Gurgaon

PostPosted: Mon Aug 28, 2006 4:07 pm
Reply with quote

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
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Mon Aug 28, 2006 5:13 pm
Reply with quote

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
View user's profile Send private message
crrindia

Active User


Joined: 02 Jul 2005
Posts: 124
Location: Gurgaon

PostPosted: Mon Aug 28, 2006 5:32 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Aug 28, 2006 6:04 pm
Reply with quote

You are allowed only one version per generation.
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Mon Aug 28, 2006 6:11 pm
Reply with quote

As of my knowledge, it'z not possible to change the version number thru JCL.....DISP(NEW,CATLOG,).

~Vamsi
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Aug 28, 2006 6:38 pm
Reply with quote

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
View user's profile Send private message
crrindia

Active User


Joined: 02 Jul 2005
Posts: 124
Location: Gurgaon

PostPosted: Tue Aug 29, 2006 11:00 am
Reply with quote

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
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Generate random number from range of ... COBOL Programming 3
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Copying GDG version(all/few) from pro... CLIST & REXX 13
Search our Forums:

Back to Top