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

Regarding GDG version Increments


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

New User


Joined: 02 Aug 2005
Posts: 13
Location: hyderabad

PostPosted: Tue Aug 23, 2005 5:16 pm
Reply with quote

Hello Friends,
I want to increment the existing generation version, How can i do that ?
I have tried several ways as keeping the existing generation(0) with disp=mod, disp=old, but the records were added/replaced with both these conditions, but the version is not incremented.

Suppose my Generation is sravan.gooovoo, i have created it and updated with some records.Now i want the new version of the same generation as sravan.gooov01.How can i get that through JCl?

Can anyone say how can i increment it?
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Aug 23, 2005 6:04 pm
Reply with quote

You have a couple of different choices:

Code:

//STEP0001 EXEC PGM=IEBGENER                                       
//SYSUT1   DD   DISP=SHR,DSN=SRAVAN.G0001V00               
//SYSUT2   DD   DSN=SRAVAN.G0001V01,
//         DISP=(,CATLG,DELETE),UNIT=SYSDA,SPACE=(CYL,(1,1),RLSE)   
//SYSPRINT DD   SYSOUT=*                                           
//SYSIN    DD   DUMMY                                               
//*       


Code:
                                                         
//STEP0001 EXEC PGM=IDCAMS                                         
//SYSPRINT DD   SYSOUT=*                                           
//SYSIN    DD   *                                                   
   ALTER 'SRAVAN.G0001V00' NEWNAME('SRAVAN.G0001V01')
/*     


Code:
     
//STEP0001 EXEC PGM=IKJEFT01                                       
//SYSTSPRT DD   SYSOUT=*                                           
//SYSTSIN  DD   *                                                   
RENAME 'SRAVAN.G0001V00' 'SRAVAN.G0001V01'
/*                                                                 
//*                                                                 
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Tue Aug 23, 2005 6:06 pm
Reply with quote

Hi Sravan!

Please refer the following link:

ibmmainframes.com/viewtopic.php?t=209&highlight=
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Tue Aug 23, 2005 6:57 pm
Reply with quote

or u can copy the existing version using IEBGENER to ..sravan(+1)
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Tue Aug 23, 2005 8:33 pm
Reply with quote

shivashunmugam,
Quote:
or u can copy the existing version using IEBGENER to ..sravan(+1)


If you mention it like above it would increase the Generation and not the Version number. For creating a GDG with G0001V01, must specify like what SUPERK has .
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 isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
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
No new posts TSQ Item Count increments to plus 1 CICS 1
No new posts XMITIP Latest Version JCL & VSAM 2
Search our Forums:

Back to Top