<<Howard Frost writes:>>
Hi,
I am involved in y2k testing of MPE commands.
I recall from MPE-V that the tape label parameter of the :file and
:build commands included a field for the expiration date of the label.
However, using :help and also the laser-rom, there is no mention of
the LABEL parameter and its sub-parameters.
Does anyone have the exact syntax, or is this parameter
discontinued.
Thanks,
(Dr) Howard Frost
----------------------------------------------------------------------------
-----
Hi Howard,
I noticed that Mike Berkowitz had responded to your question
with an apt reply regarding the environment for processing an already
existing labeled tape and I thought I might add to that regarding the
"labeling" process itself of an unlabeled tape.
Labeled tapes are not that mysterious once you get a little practice
with them. FCOPY probably allows for the easiest level of accessing
multiple files on an "unlabeled" tape. A "labeled tape" is quite a different
animal and its only purposes are to allow for a single file to span multiple
reels(probably dating myself here) and to safeguard against accidental
overwrite by providing an expiration date. This data entered into a database
can also provide a great deal of insight into the what, where, who, when,
and
why of the creation of a tape.
The HP3000 automatically recognizes a "labeled tape" once it has
been labeled(all tapes begin as unlabeled). I have used a couple of
commercial programs to label tapes, but the only way I know to "label"
an unlabeled tape without such convienence can be found in:
Accessing Files Programmer's Guide
Chapter 8
Writing User Data in ANSI Labels
<The following was copied from the HP LaserRom>
----------------------------------------------------------------------------
--------------------------------------
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:
FILE FRANKSTN.COUNCIL;DEV=TAPE;REC=-80,,F,ASCII;LABEL=BUDGET,ANS
FCOPY FROM=datafile;TO=*FRANKSTN.COUNCIL
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.
----------------------------------------------------------------------------
-----------------------------------------------------------------
Good luck..........Eric Sand
[log in to unmask]
|