View previous topic :: View next topic
|
Author |
Message |
sravanv
New User
Joined: 02 Aug 2005 Posts: 13 Location: hyderabad
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
Back to top |
|
|
shivashunmugam Muthu
Active User
Joined: 22 Jul 2005 Posts: 114 Location: Chennai
|
|
|
|
or u can copy the existing version using IEBGENER to ..sravan(+1) |
|
Back to top |
|
|
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 156
|
|
|
|
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 |
|
|
|