DSM/Tape Catalog User's Guide

Using TAPECATALOG DEFINE Attributes
DSM/Tape Catalog User’s Guide 520233-008
6 - 12
TAPECATALOG DEFINE Examples
TAPECATALOG DEFINE Examples
These examples use TAPECATALOG DEFINE in the DSM/TC environment.
Labels ANSI—Writing a Single Tape File
This request uses the default volume and file catalog because none is specified in the
DEFINE. Only ANSI-labeled tapes are selected from the pool, and the volume is
written compressed (if the drive used supports compression):
ADD DEFINE =ANSI, CLASS TAPECATALOG, USE OUT, FILEID USER.FILE1, &
LABELS ANSI, EXPIRATION JUL231994, POOL ANSI_TAPES, &
COMPRESSION IDRC
FUP COPY FILE1, =ANSI, BLOCKOUT 32000
Labels ANSI—Writing Multiple Files
To add the first tape file, this request uses the default pool, volume, and file catalog
because none are specified in the DEFINE. Only cartridge-type ANSI-labeled tapes are
selected from the pool, and the volume is written with the default compression value (if
the drive used supports compression):
ADD DEFINE =ANSI1, CLASS TAPECATALOG, USE OUT, FILEID USER.FILE1,&
TAPEMODE STREAM
FUP COPY FILE1, =ANSI1, BLOCKOUT 32000 [,NO REWINDOUT, NO UNLOADOUT]
The tape volume can be left positioned and online or can be unloaded and then loaded
later for the addition of subsequent tape files. For this example, the first volume used is
ANSI05.
To add the second tape file, the following request uses the default pool, volume, and
file catalog since none was specified in the DEFINE. Only cartridge-type ANSI-labeled
tapes are selected from the pool (if more scratch tapes are needed), and the volume is
written with the default compression value (if the drive used supports compression).
Because a multiple-file volume set is being created, the DEFINE must specify the
name of either the first volume used in the volume set, a list of volumes from the
volume set in order of usage, or the last volume used in the volume set:
ADD DEFINE =ANSI2, CLASS TAPECATALOG, USE OUT, FILEID USER.FILE2,&
TAPEMODE STREAM, VOLUME ANSI05, FILESEQ 2
FUP COPY FILE2, =ANSI2, BLOCKOUT 32000 [,NO REWINDOUT, NO UNLOADOUT]
The tape volume can be left positioned and online or can be unloaded later for addition
of subsequent tape files.