IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem with RETPD


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Wed Apr 02, 2008 8:07 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Apr 02, 2008 9:18 pm
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Apr 03, 2008 1:52 am
Reply with quote

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
View user's profile Send private message
Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Thu Apr 03, 2008 10:23 am
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Apr 03, 2008 6:22 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top