Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Receommendations required for adding ... Alan Playford JCL & VSAM 4 Wed Feb 14, 2018 4:01 pm
No new posts OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us