Re: Looking for a Utility to Re-Catalog Only the x Most Current GDG Generations
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
Re: Looking for a Utility to Re-Catalog Only the x Most Current GDG Generations
I don't know of a utility to do this but what you can do is get a list of all GDG bases in question and alter the limit to '1'; the system will delete all but the newest one. You may want to this in batch otherwise, your TSO session will be locked until the task completes. Hervey -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Michael Egle Sent: Thursday, January 05, 2012 2: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
Re: Looking for a Utility to Re-Catalog Only the x Most Current GDG Generations
If the GDG base is defined as scratch and you modify the GDG limit to x, everything greater than x gets scratched. Or at least, that's how we have done this in the past. Bob Herring Texas Farm Bureau Insurance Companies Waco, TX WWW.TXFB-INS.COM CONFIDENTIALITY STATEMENT: The foregoing message (including attachments) is covered by the Electronic Communication Privacy Act, 18 U.S.C. sections 2510-2521, and is CONFIDENTIAL. If you believe that it has been sent to you in error, do not read it. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.-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: [IBM-MAIN] 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