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

GDG - deleting old generation datasets


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

New User


Joined: 14 Jun 2006
Posts: 56

PostPosted: Wed Feb 04, 2009 3:35 am
Reply with quote

I have a GDG with close to 1000 Generations. I want to retain only the 50 most recent generations i.e from 950 to 1000 and want to delete all the other generatins from 1 throughl 949. Is there any way to do this?

Vin
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Feb 04, 2009 3:51 am
Reply with quote

Hello,

You can do what you want with idcams. There are multiple examples in the forum.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Feb 04, 2009 5:28 am
Reply with quote

I'm not sure what you're referring to, but you do not have a GDG with close to 1000 generations. From the IDCAMS manual on DEFINE GDG (emphasis added by me):
Quote:
15.1.1 Required Parameters

GENERATIONDATAGROUP
Specifies that a generation data group (GDG) entry is to be defined. A GDG can contain both SMS- and non-SMS-managed generation data sets. A generation data set (GDS) cannot be a VSAM data set. If you create a GDG and its catalog is on an SMS-managed volume, you should remove any dependencies on pattern DSCBs. See z/OS DFSMS Using Data Sets for information about GDGs and GDSs.

Abbreviation: GDG

NAME(entryname)
Specifies the name of the GDG being defined.

LIMIT(limit)
Specifies the maximum number, from 1 to 255, of GDSs that can be associated with the GDG being defined.

Abbreviation: LIM
As the manual clearly states, a GDG has a maximum of 255 generations. You may have cataloged datasets that look like a GDG, but no more than 255 generations per GDG. Period. The other 700-odd datasets are not in the GDG.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Feb 04, 2009 6:26 am
Reply with quote

Hi,

a quick and dirty way to delete the datasets attached to the GDG base (if limit is greater than 50), is to do an ALTER on the GDG base to 50, this will retain the last 50 GDG's and delete the remainder.


Gerry
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Feb 04, 2009 6:39 am
Reply with quote

Hello,

While you might have 1000 dataset names, they will not all be part of the active gdg (see Robert's reply).

Are these tape or dasd datasets? Have you verified that they all still exist?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Feb 04, 2009 12:15 pm
Reply with quote

And if you do a listcat do they appear either as "ROLLED OFF" or "DEFERRED" ?

Have you looked at your GDG definition to see if this causes the problem ? Maybe NOSCRATCH is defined in the GDG base.

Have you spoken to your storage people to do this process automatically via the ACS routines ?
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 Deleting a Tape file JCL & VSAM 14
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
Search our Forums:

Back to Top