View previous topic :: View next topic
|
Author |
Message |
madlui56
New User
Joined: 08 Aug 2006 Posts: 61 Location: Philippines
|
|
|
|
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 |
|
|
vicky10001 Warnings : 1 Active User
Joined: 13 Jul 2005 Posts: 136
|
|
|
|
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 |
|
|
madlui56
New User
Joined: 08 Aug 2006 Posts: 61 Location: Philippines
|
|
|
|
Thanks Vicky..
but.. question on the JCL..
Is the LABEL included when declaring or using a RETPD command?
Thanks |
|
Back to top |
|
|
vicky10001 Warnings : 1 Active User
Joined: 13 Jul 2005 Posts: 136
|
|
|
|
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 |
|
|
vicky10001 Warnings : 1 Active User
Joined: 13 Jul 2005 Posts: 136
|
|
|
|
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 |
|
|
|