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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
madlui56
Currently Banned

New User


Joined: 08 Aug 2006
Posts: 61
Location: Philippines

PostPosted: Wed Aug 30, 2006 12:03 pm    Post subject: How to or What is the command in adding a retention period?
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    Post subject:
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
Currently Banned

New User


Joined: 08 Aug 2006
Posts: 61
Location: Philippines

PostPosted: Wed Aug 30, 2006 12:11 pm    Post subject: Re: How to or What is the command in adding a retention peri
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    Post subject:
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    Post subject:
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    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 TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am


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