|
|
| 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 |
|
 |
References
|
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3383 Location: Charlotte,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
Global Moderator
Joined: 06 Jan 2004 Posts: 257
|
|
| 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: 154
|
|
|
|
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 |
|
 |
|
|