Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What is significance of new version in GDG?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: What is significance of new version in GDG?
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 27, 2008 12:17 pm    Post subject:
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    Post subject: Reply to: What is significance of new version in GDG?
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 27, 2008 12:20 pm    Post subject:
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    Post subject: Reply to: What is significance of new version in GDG?
Reply with quote

For Reference check this link

http://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    Post subject: Reply to: What is significance of new version in GDG?
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: 1288
Location: Chennai, India

PostPosted: Wed Aug 27, 2008 12:26 pm    Post subject: Reply to: What is significance of new version in GDG?
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 27, 2008 12:26 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Aug 27, 2008 12:41 pm    Post subject: Reply to: What is significance of new version in GDG?
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 27, 2008 12:44 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Aug 27, 2008 12:46 pm    Post subject: Reply to: What is significance of new version in GDG?
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 27, 2008 1:04 pm    Post subject:
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Aug 27, 2008 1:58 pm    Post subject: Reply to: What is significance of new version in GDG?
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 27, 2008 2:10 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Aug 27, 2008 2:12 pm    Post subject: Reply to: What is significance of new version in GDG?
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

Senior Member


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

PostPosted: Wed Aug 27, 2008 6:07 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Wed Aug 27, 2008 6:35 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Is there a time Version of DATEDIFF ? Bill Woodger DFSORT/ICETOOL 1 Wed Aug 17, 2016 7:06 pm
No new posts Syncsort version supporting FINDREP c... juares castro SYNCSORT 9 Tue Aug 09, 2016 6:54 pm
No new posts Faccing issues while creating a GDG V... sravindra_s JCL & VSAM 5 Thu Jun 23, 2016 11:26 am
No new posts Fujitsu Cobol 85 to IBM Cobol (Any ve... umakalikiri COBOL Programming 4 Fri Apr 15, 2016 7:40 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us