TACL Reference Manual

UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual429513-018
8-189
SET DEFINE Command
Examples
1. This command establishes a working attribute set that describes a tape file
residing on three ANSI standard tape volumes (1, 2, and 3). This file is to be read
(USE IN), and the system is to do standard label processing:
13> SET DEFINE CLASS TAPE, LABELS ANSI, VOLUME (1,2,3),&
13> &REELS 3, USE IN
2. In this example, a SET DEFINE command establishes a working attribute that
contains the attributes common to two DEFINEs that are to be created. Each is a
TAPEMODE
{ STARTSTOP | STREAM }
Specifies the operating mode for a cartridge tape drive;
for other types of drives, this attribute is ignored
If you specify TAPEMODE, BLOCKSIZE must be
greater than the default of 2 to speed the tape writing
process and to produce a more compact tape. The
default is STARTSTOP.
USE { IN | OUT | EXTEND |
OPENFLAG }
Specifies how the tape file is to be used
IN: The file is to be read from.
OUT: The tape is to be written to.
EXTEND: Data is to be appended to the tape file.
OPENFLAG: Uses the type of access indicated by the
access flag of the OPEN call (it must be either Read or
Write; Read/Write becomes Read).
* VERSION number Indicates a version within one generation
Specify an integer in the range 00 to 99. The default is
00.
VOLUME
{ vol-id | SCRATCH }
Specifies one or more tape volume IDs, or specifies that
any scratch tape is acceptable for a labeled BACKUP or
ANSI tape
Specify a unique one-byte to six-byte identification code
assigned to the volume; for a multivolume file, enclose
the list of volume IDs in parentheses. SCRATCH
represents a scratch tape. If you specify USE IN, you
must include a VOLUME attribute; otherwise, its value is
SCRATCH. If you specify a VOLUME attribute, you must
specify LABELS ANSI, LABELS IBM, or LABELS
BACKUP. If you specify VOLUME SCRATCH, you
cannot specify USE IN or USE EXTEND.
Note: The maximum number of tape volumes that can
be named in a CLASS TAPE DEFINE is 61.
* Attributes marked with an asterisk have corresponding fields in the tape system labels. See the description of
tape label formats in the Guardian User’s Guide.
Table 8-8. TAPE DEFINE Attributes (page4of4)
Name and Value Function