Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How the Version Numbers are changed in GDG's.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How the Version Numbers are changed in GDG's.
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    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Mon Aug 28, 2006 6:04 pm    Post subject: Re: How the Version Numbers are changed in GDG's.
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    Post subject:
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

Moderator Team Head


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

PostPosted: Mon Aug 28, 2006 6:38 pm    Post subject: Re: How the Version Numbers are changed in GDG's.
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    Post subject: Re: How the Version Numbers are changed in GDG's.
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts GDG version number PANDU1 JCL & VSAM 4 Sat Mar 04, 2017 8:28 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 15 Tue Nov 01, 2016 11:24 am
No new posts Row-Numbers of distinct rows? Auryn DB2 1 Thu Oct 20, 2016 4:38 pm
No new posts Is there a time Version of DATEDIFF ? Bill Woodger DFSORT/ICETOOL 1 Wed Aug 17, 2016 7:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us