//stepname EXEC PGM=TMSCLEAN, // PARM='[TEST,]EXTEND[,LDATE],nn,xx,aaaaaa' //STEPLIB DD DSN=CAI.CTAPLINK,DISP=SHR //TMSRPT DD SYSOUT=A //EARLOUT DD DSN=extend.earlout, // DISP=(NEW,PASS,DELETE), // UNIT=SYSDA, // SPACE=(CYL,5), // DCB=(RECFM=FB,LRECL=376,BLKSIZE=15416) *NOTE [//TMSRPT89 DD SYSOUT=A] [//SYSIN DD *] [VOL=ssssss-eeeeee]
[EXCLUDE=ssssss-eeeeee] [SCRPOOL=xxxxx] [FILE1DSN=pattern]
Note: The BLKSIZE can be any multiple of 376.
Parameter Definitions
Process normally, but do not update any TMC records. The records processed are written to EARLOUT to subsequently produce the Extend Expiration Dates report, but the TMC is not updated. This parameter is optional, and, if used, must be specified before EXTEND.
Extends the expiration dates on qualified TMC records.
Allows LDATE/ddd expirations to be extended with all other qualified tapes.
Is the number of days to extend the expiration date. If the tape has an expiration date less than the current date, it may still be eligible for scratch after adding the extension.
Is the range of days from the current date within which the existing expiration date must fall to qualify for extension, that is, tapes expiring within xx days from the current date are to be extended nn days.
Is the index of a data set or fully qualified data set name of data sets to be extended. The specification ALL may be used to extend all data sets, but when used with FILE1DSN control statements, a parm of ALL must be used.
JCL Considerations
If the SYSIN DD is found, the TMC is processed based on the volumes specified in the range control statements. If no control statements are coded, the complete TMC is processed. A maximum of 20,000 range control statements is allowed. If the SYSIN DD is not found, then TMSCLEAN processes the complete TMC.
If the SYSIN DD is used, this DD must be coded. The range control statements are printed to this DD and any errors found in the control statements are printed to this DD.
Range Control Statements
The VOL statement is used to select the volumes to be processed based on a starting and ending volume number. A single volume may be specified by only coding a start volume.
The SCRPOOL statement is used to select the volumes to be processed based on a scratch subpool name.
The FILE1DSN statement is used to select volumes based on the DSN of the first file on the volume, using standard CA 1 pattern masking. When the FILE1DSN statement is the only selection statement used, the complete TM will be processed and only volumes that match the specified pattern are processed. If FILE1DSN= statement is used with VOL and/or SCRPOOL statements, then only volumes within the requested ranges that match the pattern are processed.
The EXCLUDE statement selects the volumes you want to exclude from processing based on a starting and ending volume number. To specify a single volume, code only a start volume.
Start and end volumes must be six digit numbers. If the volume number has five or fewer digits, it must be padded with 0s.
EXCLUDE=001500-001575
The EXCLUDE control statement can be used without a VOL control statement.
Example: The control statement excludes the volser range of 001500-001550 from being processed by TMSCLEAN.
EXCLUDE=001500-001550
Note: If the volumes included match the volumes excluded, the exclude control statement overrides the include control statement.
Extending Expiration Date Examples
//stepname EXEC PGM=TMSCLEAN, // PARM='EXTEND,04,04,ALL'
//stepname EXEC PGM=TMSCLEAN, // PARM='EXTEND,04,04,ABC'
//stepname EXEC PGM=TMSCLEAN, // PARM='EXTEND,LDATE,04,04,ALL'
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|