DSM/Tape Catalog User's Guide

Using TAPECATALOG DEFINE Attributes
DSM/Tape Catalog User’s Guide 520233-008
6 - 14
General Examples
General Examples
These examples use the following default values (set with the MEDIACOM ALTER
MEDIADEFS command) unless otherwise specified in the DEFINE:
The DEFINE in this example specifies three scratch tapes for BACKUP. All the
tapes are available when DSM/TC verifies their status in pool OPS_TAPES. They
are requested for use in the order given in the VOLUME attribute.
11> ADD DEFINE =OUTPUT_TAPE_FOR_BACKUP,&
11> & CLASS TAPECATALOG,&
11> & USE OUT,&
11> & LABELS BACKUP,&
11> & POOL OPS_TAPES,&
11> & FILEID OPERATIONS_BACKUP,&
11> & GEN +1,&
11> & VOLUME (T68, T69, T70),&
11> & RETENTION 100
The DEFINE in this example requests the latest generation of the input tape file
PAYROLL_MASTER. This file is on an ANSI-labeled tape.
10> ADD DEFINE =READ_PAYROLL_MASTER,&
10> & CLASS TAPECATALOG,&
10> & USE IN,&
10> & LABELS ANSI,&
10> & FILEID PAYROLL_MASTER,&
10> & GEN -1,&
10> & MOUNTMSG PAYROLL JOB-- HIGH PRIORITY!
The DEFINE in this example requests an ANSI-labeled scratch tape be mounted
on a tape drive of node \NCAL. The output file, PAYROLL_MASTER, is cataloged
as the next generation of this tape file ID in the file catalog. The existing volume
catalog entry for the scratch tape is changed to give the tape an assigned status
and associate it with the file catalog entry for PAYROLL_MASTER.
25> ADD DEFINE =WRITE_PAYROLL_MASTER,&
25> & CLASS TAPECATALOG,&
25> & USE OUT,&
25> & POOL PAYROLL_TAPES,&
25> & LABELS ANSI,&
25> & FILEID PAYROLL_MASTER,&
25> & GEN +1,&
25> & RECFORM F,&
25> & RECLEN 1024,&
25> & BLOCKLEN 28672
File catalog name PAYROLL_DEPT
Volume catalog name OPERATION_TAPES
Pool name ACCOUNTING_SCRATCH
Retention period 30
Current default node \NCAL