tbrannon
New User
Joined: 10 May 2005 Posts: 1 Location: St. Louis, MO USA
|
|
|
|
Hi,
Here's something that I use:
Notes:
1. Take off the TYPRUN parm to get it to actually delete the data sets
2. Change the EXC and BY parms to fit your situation
This example shows that I'm excluding certain data sets from selection and that I'm only looking for uncataloged data sets that were created or referenced less than 3 days ago.
Tom
//JOBCARD ,
//DELETE EXEC PGM=ADRDSSU,REGION=4M,PARM='TYPRUN=NORUN' <== SIMULATE
//SYSPRINT DD SYSOUT=*
//I1 DD DISP=SHR,UNIT=SYSALLDA,VOL=SER=H1WK00
//I2 DD DISP=SHR,UNIT=SYSALLDA,VOL=SER=H1WK01
//NOTAPE DD DUMMY
//SYSIN DD *
DUMP DS(INC( -
** -
) -
EXC( -
**.DFH*.** -
,DFHSM*.** -
,CATALOG.** -
,SYS1.** -
,SYS3.*LIB.** -
) -
BY( -
(CATLG,EQ,NO) -
,(CREDT,LE,*,-3) -
,(REFDT,LE,*,-3) -
) -
) -
INDD(I1,I2) -
OUTDD(NOTAPE) -
DELETE PURGE
/* |
|
grepusr3
New User
Joined: 10 May 2005 Posts: 29
|
|
|
|
DATASET (VTOC) Listing.. (Delete info discussed above)
The IBM DFDSS utility works fine for the final dataset list and it is easy to delete other product libraries if we are not very careful - this is a very powerful utility and please be careful with DFDSS wildcard character usage. Some sites rename libraries from IBM defaults. Some sites do not have DFDSS licensed.
You may want to get a comprehensive VTOC listing of your volsers first. Then filter the datasets to be deleted from the master listing. I generally after full volume DFDSS dataset level weekly backups:
(1) crete a master listing of VTOC of all applicable volsers
(2) filter datasets to be deleted from the master listing and (run IEBIBALL utility) double check
(3) I submit DFDSS delete job with specific dataset names
This way I can restore dataset from my weekly backups (if need be), and avoid doing the backup if I do this later. I use DASDSCAN utility. Here are some URLs for the free utility:
CBTtape: Use [URL] BBCode for External Links
File# 135 Greg Price Load Module library
-- www.cbttape.org/ftp/cbt/CBT135.zip -- SUPERLST - VTOC listing utility program
File# 343 A VTOCLIST program - Peter Havercan & John Kalinich
-- www.cbttape.org/ftp/cbt/CBT343.zip -- VTOCLIST
File# 411 Rob Scott's utilities - source code and FB-80 -- VTOCUTIL
File# 412 Rob Scott's utilities - load modules
-- www.cbttape.org/ftp/cbt/CBT411.zip
-- www.cbttape.org/ftp/cbt/CBT412.zip
VTOC TSO Command (classic)
www.jaymoseley.com/hercules/cbtware/vtoc.htm
DASDSCAN - VTOC reporting tool
--- product -- DASDSCAN (now unsupported, chaep, may be free now, contact them)
--- utilsoft.com/index.html
I hope this helps!
-Pelad |
|