View previous topic :: View next topic
|
Author |
Message |
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
What is significance of new version in gdg?
How to create new version from jcl and refer it?
for eg.
if we have latest generation as
basename.G0020V00
How to create
basename.G0020V01
from jcl? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Really, there is no significance, as only one version of a given generation can exist.
To create it, you need to specify the fully qualified dataset name. |
|
Back to top |
|
|
Prasanthhere
Active User
Joined: 03 Aug 2005 Posts: 306
|
|
|
|
Code: |
//STEP2 EXEC PGM=IEFBR14
//GEN DD DSN=basename(+1),
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(CYL,(10,5),RLSE)
//SYSIN DD DUMMY
|
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Prasanth,
your JCL will create a new generation, not a new version. |
|
Back to top |
|
|
Prasanthhere
Active User
Joined: 03 Aug 2005 Posts: 306
|
|
Back to top |
|
|
Prasanthhere
Active User
Joined: 03 Aug 2005 Posts: 306
|
|
|
|
Oh Yes I misread the requirement as New generation . Please remove my posting |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Prasanth,
Your JCl wont work for creating a new Version.
Sambhaji,
Quote: |
http://ibmmainframes.com/about209.html |
Check this link
NEW GDG VERSION |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Prasanth,
Technically the document in your link is incorrect.
The usual muddled usage of generation and version. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Expat,
Quote: |
Technically the document in your link is incorrect.
The usual muddled usage of generation and version. |
Yes. But mmwsife's posts would be useful to the OP. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Aaru,
I meant the link from Prananth not your link. Just one of those times that someone had posted as I scripted my reply.
The info given in the link you provided is accurate - as far as I read |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Expat,
Oh ok. I was breaking my head as to what was wrong in that document . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Then please accept my apologies. I have edited my post to make the point clear. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Can anybody give me sample jcl
which creates new version?
It would help to understand concept better. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Expat,
Quote: |
Then please accept my apologies. I have edited my post to make the point clear.
|
Now it is clear. Thanks for editing the post. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Sambhaji wrote: |
Can anybody give me sample jcl
which creates new version?
It would help to understand concept better. |
Take a look at the JCL supplied by Prasanth, it is almost perfect for what you want.
To create a version other than the default of 00 you must specify the fully qualified dataset name rather than using (+1).
This information has been stated once and is also in the link provided by Aaru. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Sambhaji,
Quote: |
Can anybody give me sample jcl
which creates new version?
It would help to understand concept better. |
Did you take a look at the link and mmwife's post????
From the posted link
Quote: |
You can catalog a new version of a specific generation automatically by specifying the old generation number along with a new version number. For example, if generation A.B.C.G0005V00 is cataloged and you now create and catalog A.B.C.G0005V01, the new entry is cataloged in the location previously occupied by A.B.C.G0005V00. |
You can use the same JCL provided by prasanth and change the dataset name to include the latest generation and the new version no.
Code: |
//STEP2 EXEC PGM=IEFBR14
//GEN DD DSN=basename.G0002V01,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(CYL,(10,5),RLSE)
//SYSIN DD DUMMY |
01 - latest version |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hello,
In GnnnnVnn
1) 'G' - is a constant character referring to the word Generation
2) 'nnnn' - is a Generation number consisting of four digits. This number starts at 0001 and goes to 9999 before repeating (the only time a lower number means a newer data set chronologically)
3) 'V' - is a constant character referring to the word Version
4) 'nn' - is a Version number consisting of two digits. At 00 this number starts at 00 and goes to 99.
It should be noted that the Version number default is '00'. It is extremely rare for a Version greater than '00'. Version numbers are used when you wish to keep the same generation number but also want to have different versions.
An example of this situation might be when 'G0006V00' contains data for your personnel file that has old merhcant numbers, however 'G0006V01' contains the same data with new merchant numbers.
One point to keep in mind and it's important: Only one version can exist for a generation in a GDG at any given time. I'm not sure if the previous version is deleted, but I do know that it is removed from the GDG. Surely if the GDG was created with the force or purge option it will be deleted. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Thaks Anuj, It will help many of new users like me.
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
Back to top |
|
|
|