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
 

 

GDG - deleting old generation datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: GDG - deleting old generation datasets
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

Site Director


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

PostPosted: Wed Feb 04, 2009 3:51 am    Post subject:
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed Feb 04, 2009 5:28 am    Post subject:
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: 1703
Location: Australia

PostPosted: Wed Feb 04, 2009 6:26 am    Post subject:
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

Site Director


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

PostPosted: Wed Feb 04, 2009 6:39 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Feb 04, 2009 12:15 pm    Post subject:
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    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 SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm


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