Previous Topic: Step 3 - Define a Time PeriodNext Topic: Step 5 - Select Tapes Due To Expire


Step 4 - Eliminate Existing Scratch Tapes

Eliminate any tapes that are already in SCRATCH status from processing. Add this SELECT statement to your control file:

SELECT IF FLAG1 HAS ANY BITS OFF ‘04’.

The SELECT control statement examines the FLAG1 field in the TMC. If the X‘04’ bit in the FLAG1 field is ON, the tape the record refers to is a scratch tape. This SELECT statement chooses all tapes that have the X‘04’ bit in the FLAG1 field turned OFF for the report.