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
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
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
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
4 matches
Mail list logo