Hi List,
I haven't been able to find an answer in the archives, so I'll ask the
list what I'm missing. I'm trying to get DFSMShsm to delete expired
datasets based on management class. To this end, I changed the "expire
non-usage" field for one of the test management classes to 5 days then
allocated a few new datasets in this management class. I did this 7
days ago. Today when I checked, the datasets were still there. My
EXPIREDDATASET parameter is set to SCRATCH. What am I missing? How do
I get these datasets to delete automatically?
Test dataset catalog entry:
NONVSAM ------- U05.RRP.JUNK
IN-CAT --- CATALOG.WSCTEST.UCAT
HISTORY
DATASET-OWNER-----(NULL) CREATION--------2009.218
RELEASE----------------2 EXPIRATION------0000.000
ACCOUNT-INFO-----------------------------------(NULL)
SMSDATA
STORAGECLASS ------SCSTD MANAGEMENTCLASS-MCINTUAT
DATACLASS ---------DCSTD LBACKUP ---0000.000.0000
VOLUMES
VOLSER------------ZD2000 DEVTYPE------X'3010200F'
FSEQN------------------0
ASSOCIATIONS--------(NULL)
ATTRIBUTES
***
SMS constructs (with extra lines deleted):
LINE MGMTCLAS EXPIRE EXPIRE RET
OPERATOR NAME NON-USAGE DATE/DAYS LIMIT
---(1)---- --(2)--- ---(3)--- ---(4)---- --(5)--
MCINTUAT 5 NOLIMIT NOLIMIT
PARTIAL PRIMARY LEVEL 1 CMD/AUTO
RELEASE DAYS DAYS MIGRATE
----(6)---- ---(7)-- --(8)-- --(9)---
CONDITIONAL 10 35 BOTH
A couple other items in the SMS construct for this mgmt class is that it
should have 3 backups if the dataset exists and 1 backup for a deleted
dataset. This dataset apparently hasn't been backed up because I just
created it but didn't open it. Could this be the reason it isn't being
deleted? I thought the 1 backup for a deleted dataset simply says that
if there are backups when the dataset is deleted, to keep 1 backup copy
for a period of time. Is this a mistaken thought?
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html