Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem with RETPD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Problem with RETPD
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

Senior Member


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

PostPosted: Wed Apr 02, 2008 9:18 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us