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

What is significance of new version in GDG?


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

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Wed Aug 27, 2008 12:09 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 27, 2008 12:17 pm
Reply with quote

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
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Wed Aug 27, 2008 12:18 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 27, 2008 12:20 pm
Reply with quote

Prasanth,

your JCL will create a new generation, not a new version.
Back to top
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Wed Aug 27, 2008 12:21 pm
Reply with quote

For Reference check this link

www.geocities.com/*****/drona/programming/languages/jcl/jcl.chapter9.html
Back to top
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Wed Aug 27, 2008 12:22 pm
Reply with quote

Oh Yes I misread the requirement as New generation . Please remove my posting
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Aug 27, 2008 12:26 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 27, 2008 12:26 pm
Reply with quote

Prasanth,

Technically the document in your link is incorrect.

The usual muddled usage of generation and version.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Aug 27, 2008 12:41 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 27, 2008 12:44 pm
Reply with quote

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 icon_wink.gif
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Aug 27, 2008 12:46 pm
Reply with quote

Expat,

Oh ok. I was breaking my head as to what was wrong in that document icon_sad.gif .
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 27, 2008 1:04 pm
Reply with quote

Then please accept my apologies. I have edited my post to make the point clear.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Wed Aug 27, 2008 1:55 pm
Reply with quote

Can anybody give me sample jcl
which creates new version?
It would help to understand concept better.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Aug 27, 2008 1:58 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 27, 2008 2:10 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Aug 27, 2008 2:12 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Aug 27, 2008 6:07 pm
Reply with quote

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
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Wed Aug 27, 2008 6:28 pm
Reply with quote

Thaks Anuj, It will help many of new users like me.

icon_smile.gif icon_smile.gif icon_smile.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Aug 27, 2008 6:35 pm
Reply with quote

well... icon_redface.gif .. icon_redface.gif ..
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 XMITIP Latest Version JCL & VSAM 2
No new posts How to determine TLS/SSL version in m... TSO/ISPF 2
Search our Forums:

Back to Top