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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts USAGE parameter of RACDCERT CONNECT c... All Other Mainframe Topics 2
No new posts creat new line command in front of Me... TSO/ISPF 4
No new posts c all command JCL & VSAM 11
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Help needed in automation cics transa... CLIST & REXX 1
Search our Forums:


Back to Top