I was trying to take a backup and then delete a tape dataset using DISP=(MOD,DELETE,KEEP) and retention period for the dataset is not yet over. But when I was testing, its found that when I give a DASD dataset, this delete step is giving catalogue error and it ran fine for a TAPE dataset.
I was wondering whether there is such distinction with TAPE and DASD file for RETPD parameter or is it a problem with the MGMTCLAS or any SMS settings in our shop?
Joined: 22 Apr 2006 Posts: 6258 Location: Mumbai, India
delete step is giving catalogue error
What error did you get? Data on DASD is VSAM or QSAM ?
is it a problem with the MGMTCLAS or any SMS settings in our shop?
With SMS, RETPD overrides the retention period defined in the DATACLAS parameter for the data set.
Further, both the retention period specified on RETPD and defined in the data class for an SMS-managed data set can be limited by a maximum retention period defined in the management class for the data set.
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
The messages say the tape is DELETED, but if you wanted too you could still find the tape and read the data again. It's not really deleted like a DASD file gets deleted! Therefore, the RETPD has no effect on "deleting" a tape file via DISP parameter.
As you observed, it does remove the catalog entry for the tape.