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

Generation Data Group auto delete Error


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

New User


Joined: 02 Aug 2006
Posts: 4

PostPosted: Fri Aug 04, 2006 11:31 am
Reply with quote

Hi all...

We specified the the followin while creating base index limit 5, NOEMPTY and SCRATCH.

We created a new GDG by specifying the generation number as (+5), (+5) and (+1), by submitting the program one after the other.
Thus we could create GDGs
G0005V00
G0010V00
G0011V00

In the next step, we run the same program as follows, ESCUB11.VDS.G0002V00 and ESCUB11.VDS.G0001V00 one by one.
Thus we had
G0001V00
G0002V00
G0005V00
G0010V00
G0011V00

Then we created G9999V00 by specifying ESCUB11.VDS.G9999V00. Now instead of deleting G0005V00, which is the oldest, G0001V00 was deleted.

Can anyone please tell the logic behind this and internal working of deletion and creation of a generation.....???????
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Fri Aug 04, 2006 3:29 pm
Reply with quote

As I understand it , IDCAMS uses the GDG number (g0001) to determine the oldest and newest datasets in the group and NOT the date/time they were actually created.
Thus if you go messing around with these numbers you will not get the intended benefits.

Generally one would create the next in the group (+1) and refer to it or others created prior (0) (-1) etc.

Bearing that in mind, I'm still trying to figure why you would want to do what you are indicating!
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 How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Store the data for fixed length COBOL Programming 1
No new posts Error to read log with rexx CLIST & REXX 11
No new posts DELETE SPUFI DB2 1
No new posts Error when install DB2 DB2 2
Search our Forums:

Back to Top