Safeguard Reference Manual (G06.24+, H06.03+ )

SAFECOM Session-Control Commands
Safeguard Reference Manual520618-013
4-25
VOLUME Command
VOLUME Command
VOLUME establishes a default disk volume name and a default subvolume name.
SAFECOM uses the current default volume and subvolume names to expand partially
qualified disk file names. SAFECOM uses the current volume name to expand partially
qualified subvolume names.
When you start SAFECOM, the default volume and subvolume names established
through your command interpreter become your current SAFECOM default volume and
subvolume names.
VOLUME
entered with no volume or subvolume names, sets the default volume and
subvolume names to the original names you established through your command
interpreter before running SAFECOM.
$volume
sets the current default volume name to $volume but leaves the current default
subvolume name unchanged.
$volume.subvolume
sets both the current default volume and subvolume names to
$volume.subvolume.
subvolume
sets the current default subvolume name to subvolume but leaves the current
default volume name unchanged.
Consideration
To display your current default volume and subvolume names, use the ENV VOLUME
command. For example:
=ENV VOLUME
VOLUME $DATA.SALES
=
Example
This example uses the VOLUME command to establish default volume and subvolume
names within a sequence of commands:
=OUT $s.#lp -- Directs output to $S.#LP
VOLUME [ $volume ]
[ $volume.subvolume ]
[ subvolume ]