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

How to or What is the command in adding a retention period?


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

New User


Joined: 08 Aug 2006
Posts: 61
Location: Philippines

PostPosted: Wed Aug 30, 2006 12:03 pm
Reply with quote

Hello,

just want to ask if what is the command in putting a retention period to a dataset using a multigen job for copying?

Is is RETPD= # of days ?

What are other ways, this is within JCL.

Thanks
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Wed Aug 30, 2006 12:08 pm
Reply with quote

Please find the JCL

//STEPPUT DD DSN=&DATASETNAME
// UNIT=TAPE,LABEL=RETPD=8,VOL=(,,,99),
// DISP=(NEW,CATLG,DELETE)
//

Please put the value "RETPD=??"
Back to top
View user's profile Send private message
madlui56

New User


Joined: 08 Aug 2006
Posts: 61
Location: Philippines

PostPosted: Wed Aug 30, 2006 12:11 pm
Reply with quote

Thanks Vicky..
but.. question on the JCL..

Is the LABEL included when declaring or using a RETPD command?

Thanks
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Wed Aug 30, 2006 1:09 pm
Reply with quote

Please find the solution as below

The RETPD parameter sets the expiration date for a data set being
created. After the expiration date has been reached, the data set is
eligible for deletion. The RETPD parameter on the DD statement
serves the same purpose as the RETPD subparameter of the JCL LABEL parameter for prior levels of MVS.
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Wed Aug 30, 2006 1:10 pm
Reply with quote

Examples of the RETPD Parameter

Example 1

//DD1 DD DSNAME=HERBI,DISP=(NEW,KEEP),UNIT=TAPE,
// VOLUME=SER=T2,LABEL=(3,NSL),RETPD=188

In the example, the data set is not eligible for being deleted or
written over for 188 days.

Example 2

//SMSDS2 DD DSNAME=MYDS2.PGM,DATACLAS=DCLAS02,DISP=(NEW,KEEP),
// RETPD=732

In the example, the retention period of 732 days overrides the retention
period defined in the data class for the data set.
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
Search our Forums:

Back to Top