It is possible to write data into bytes 5/21 of the HDR1 record of an ANSI tape
label. In all, 17 bytes are available. If you write more than 8 bytes into the
record, the 9th byte (Byte 13) must be a period (".").
For example, to write the string "FRANKSTN COUNCIL" into bytes 5/21, mount your
tape and then do this:
where datafile is the name of a disk file. This coerces the
string "FRANKSTN.COUNCIL" into bytes 5/21 of the HDR1 record, and it places
"BUDGET" into the VOL1 record of the tape.
The "file" and "group" names are right-justified.
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
F
R
A
N
K
S
T
N
.
C
O
U
N
C
I
L
In order to retrieve the string recorded in bytes 5/21, you must create a
program that uses the intrinsics FOPEN (or HPFOPEN) and
FFILEINFO. The program must do two things:
It must FOPEN (or HPFOPEN) the tape
device.
It must employ FFILEINFO with option 45 to retrieve the
"file" identifier.
The tape containing such a label must be mounted before you run the program.