TMF Reference Manual (G06.26+)

TMFCOM Commands
HP NonStop TMF Reference Manual522418-003
3-350
VOLUME
If you omit both volume and subvolume, the recorded default volume and
subvolume are cleared. As a result, unqualified file names are expanded
according to the defaults in effect when you started TMFCOM.
At any time, you can display the currently recorded default volume and subvolume for
your session, as well as the default volume and subvolume in effect at the beginning of
your session, by entering the ENV command.
If you issue a VOLUME command but not a CMDVOL or an OBEYVOL command in
your TMFCOM session, the volume you specify in your VOLUME command is used to
expand file names in OBEY commands and in the contents of OBEY command files.
If you specify an invalid volume name in volume, or an invalid subvolume name in
subvolume, an error message appears and the VOLUME command is ignored.
The distinction between the VOLUME, CMDVOL, and OBEYVOL commands is as
follows:
The VOLUME command applies to all unqualified file names encountered in all
TMFCOM commands during the session, except those used as CMDVOL and
OBEYVOL command parameters.
The CMDVOL command applies to all unqualified file names except those used as
OBEY command parameters.
The OBEYVOL command applies only to unqualified file names used as OBEY
command parameters.
Examples
The following VOLUME command specifies that any and all unqualified file names that
appear in TMFCOM commands during this session are expanded using the disk
volume name $DATA12:
TMF 5> VOLUME $DATA12
This assignment is reflected in the output from the following ENV command:
TMF 6> ENV
Default Volume \TSII.$BOOKS1.STAFF
Volume $DATA12.STAFF
Command Volume None Specified
Obey Volume None Specified
In File \TSII.$ZTN1A.#PTGUJ0U
Out File \TSII.$ZTN1A.#PTGUJ0U
Server Process \TSII.$Z35W
The next VOLUME command specifies that any and all unqualified file names that
appear in TMFCOM commands during this session are expanded using the disk
volume name $DATA16 and the subvolume name TRANREC:
TMF 9> VOLUME $DATA16.TRANREC