No problem! For instance. You have a GDG which currently has 100 entries in it. 
You only want to keep the most current 10. How to do this?

//IDCAMS EXEC PGM=IDCAMS
//SYSPRINT DD SYOUT=*
//SYSIN DD *
 ALTER SOME.GDGBASE.NAME LIMIT(10)
/*

You're done! All the older generations will be rolled off and uncataloged / 
deleted. 

--
John McKown 
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * 
john.mck...@healthmarkets.com * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

 

> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Michael Egle
> Sent: Thursday, January 05, 2012 1:32 PM
> To: IBM-MAIN@bama.ua.edu
> Subject: Looking for a Utility to Re-Catalog Only the x Most 
> Current GDG Generations
> 
> We have an application that has recently been sunset, but we need to
> keep some of the most recent data files that were created by that
> application. Over the years that application has generated 
> hundreds, if
> not thousands of GDG files, some on DASD, some on Tape. 
> 
>  
> 
> What we would like to do is to uncatalog and delete all but the x Most
> recent generations of these GDG base entries, freeing up a lot of disk
> and tape space.
> 
>  
> 
> From a long time ago, I remember a utility of some sort which 
> would use
> control cards to uncatalog all generations of the GDG, modify the GDG
> Base LIMIT to the number that you wanted to keep, , and then 
> Re-catalog
> only the x Most Recent Generation(s) of those files.
> 
>  
> 
> I thought I might find something on the CBT Tape, but without knowing
> the name of that utility, I have come up empty so far.
> 
>  
> 
> Does anyone know of a utility like the one I am describing, and if so,
> do you know where I can get a copy of it ?
> 
>  
> 
> Thanks
> 
>  
> 
> Mike Egle
> 
>  
> 
>  
> 
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN
> 
> 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN

Reply via email to