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
 

 

Create a new Version of a GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Mon Jun 14, 2010 1:26 pm    Post subject: Create a new Version of a GDG
Reply with quote

Hi, i created one GDG MYID.PROD and then created its first generation as MYID.PROD.G0001V00.

Now i tried running the IDCAMS again and tried to create a different version of this GDG...

here is the IDCAMS:
//SYSIN DD *
DEFINE GDG(NAME(MYID.PROD.G0000V01)-
LIMIT(5) -
NOEMPTY -
SCRATCH)

but i got return code 12...saying

IDC3014I CATALOG ERROR
IDC3009I ** VSAM CATALOG RETURN CODE IS 144 - REASON CODE IS IGG0CLAT-8

Could anyone tell me how to create a different verion of this GDG
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Mon Jun 14, 2010 1:29 pm    Post subject: Reply to: Difference between a version and generation in a G
Reply with quote

Why would You want to do that ?!
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Mon Jun 14, 2010 1:32 pm    Post subject:
Reply with quote

I just tried the above thing to clear the concept of Generation and Version...Could anyone tell me how can i solve the error?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Mon Jun 14, 2010 1:34 pm    Post subject: Reply to: Difference between a version and generation in a G
Reply with quote

well start by looking at the messages and code manual
and come back if there is something that is not clear
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7904
Location: Bellevue, IA

PostPosted: Mon Jun 14, 2010 3:32 pm    Post subject:
Reply with quote

You use IDCAMS to define the generation base. After that, you may (but do not have to) use IDCAMS to delete generations or you use IDCAMS to change the number of generations retained -- but otherwise you will not use IDCAMS in reference to a GDG. Since you are not deleting generations and you are not changing the number of generations retained, your use of IDCAMS is not right.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Mon Jun 14, 2010 5:38 pm    Post subject:
Reply with quote

May be just for your tests, you can try to allocate other version using ISPF 3.2 and then check what happens...
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Mon Jun 14, 2010 6:03 pm    Post subject:
Reply with quote

Anuj, by 3.2 we get normal PS file..not a GDG file... Tried using Fileaid to allocate GDG..but it too gave return code 12...
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Mon Jun 14, 2010 6:14 pm    Post subject: Reply to: Create a new Version of a GDG
Reply with quote

karz let's try this from the beginning.

You have a GDG base, MYID.PROD, and you've created a new generation, MYID.PROD.G0001V00. Now you want to create a new version. Presumably, the content of this new version would be different than the existing generation.

Did you try a simple, straight copy?

//STEP0001 EXEC PGM=IEBGENER
//SYSUT1 DD *
data for the new version
...
/*
//SYSUT2 DD DSN=MYID.PROD.G0001V01,DISP=(,CATLG,DELETE),UNIT=SYSDA,....
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Mon Jun 14, 2010 6:18 pm    Post subject:
Reply with quote

Well, please read the response from us in sequential manner - have you read what Robert has suggested already?

1. Once you've created your first generation - locate your base-entry using ISPF 3.4;

2. use ISPF 3.2 to allocate other version

3. repeat step 1.

and you'll observe something...
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Mon Jun 14, 2010 6:34 pm    Post subject:
Reply with quote

Anuj, got it...thanks all for your help...So as a summary i would put it like this

1st version and the 3 generations:

Myid.prod ??????
Myid.prod.G0001V00 STGU4B
Myid.prod.G0002V00 STGU09
Myid.prod.G0003V00 STGUF4


used 3.2 to crete a new version and 2 generations:

Now when viewed thru 3.4 it looked as:

Myid.prod ??????
Myid.prod.G0001V01 STGU4B
Myid.prod.G0002V01 STGU09
Myid.prod.G0003V00 STGUF4


So the first 2 generations of the 0'th version got replaced by the new generations of the 1st version...
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 645
Location: Pennsylvania

PostPosted: Mon Jun 14, 2010 7:06 pm    Post subject:
Reply with quote

Karz,

If you are new to GDG processing and are trying to understand the concept of generations and versions, here is my advice:

Understand that each new generation is another occurance of a dataset.
A generation can be referred to literally G0001V00 or relatively (0), (+1), or (-1), etc.

Understand that a version is this complicated, difficult to understand, difficult to use, totally unneeded concept, you would be better off not waisting your time with.

Always use V00, do not try to create or use V01, and you would be better off.

Do you need to know why touching a hot stove burns your hand, or is just enough to know it will burn you good enough?

This is purely my advice only, and not the opinion of this forum or anyone else on it.

I have worked with GDG files for more than 20 years and not once I have needed to use a V01. I have not touched a hot stove in that time either.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jun 14, 2010 8:19 pm    Post subject:
Reply with quote

Hello,

Quote:
Always use V00, do not try to create or use V01, and you would be better off.

Do you need to know why touching a hot stove burns your hand, or is just enough to know it will burn you good enough?

This is purely my advice only, and not the opinion of this forum or anyone else on it.
Me too. . . icon_smile.gif

I've been working on "mainframes" since before there was a Generation Data Group. . . And have never needed different versions for an application system. . .

Suggest the time be spent on something that will be of use later. . .
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Mon Jun 14, 2010 10:54 pm    Post subject:
Reply with quote

We should point out that a new version of an exsting generation replaces that generation, but holds the same sequential place, and will be deleted in its turn according to the LIMIT.

A special reason to do this would be normally for a correction.

Amyone else with other valid uses, please proffer them.
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Tue Jun 15, 2010 11:13 am    Post subject:
Reply with quote

@daveporcelan and @dick scherrer...you too are correct..i too have not seen the use of new Version, but it bugs me that people do ask such question during an interview...

So i thought why not work on this rather than reading and understanding theoratically and see how it works practically...all my doubts are solved...


----------------------------------------------------------

Its not always late to learn in life.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 645
Location: Pennsylvania

PostPosted: Tue Jun 15, 2010 7:26 pm    Post subject:
Reply with quote

My guess is that the interviewer is confused.

They mention version but really mean generation.

I would assume they really mean generation, and answer as such.

I would bet they would not know the difference.
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
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
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


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