View previous topic :: View next topic
|
Author |
Message |
vin12pr Warnings : 1 New User
Joined: 14 Jun 2006 Posts: 56
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You can do what you want with idcams. There are multiple examples in the forum. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
|