View previous topic :: View next topic
|
Author |
Message |
Prajesh_v_p
Active User
Joined: 24 May 2006 Posts: 133 Location: India
|
|
|
|
Hi All,
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?
Thanks,
Prajesh |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Quote: |
delete step is giving catalogue error |
What error did you get? Data on DASD is VSAM or QSAM ?
Quote: |
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. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
A tape file can not actually be deleted by the DISP parameter, so disregard these messages for tape.
A DASD file will be deleted by DISP parameter, but only if the RETPD allows. The IDCAMS DELETE command can deleted unexpired DASD files using a special keyword PURGE. |
|
Back to top |
|
|
Prajesh_v_p
Active User
Joined: 24 May 2006 Posts: 133 Location: India
|
|
|
|
Anuj,
The dataset is a QSAM and the error message for DASD is as below:
IGD17105I CATALOG ERROR WHILE DELETING DATA SET
RETURN CODE IS 84 REASON CODE IS 0 IGG0CLFK
I think this is correct as we need to go for an IDCAMS purge for RETPD datasets. But I am not sure why it is diffrent for a TAPE dataset.
Bill,
I can see both UNCATALOGED and DELETED message in log for the TAPE dataset when I give DISP=(MOD,DELETE,KEEP) and 3.4 no longer shows me the dataset.
Thanks,
Prajesh |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Prajesh,
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. |
|
Back to top |
|
|
|