DSM/Tape Catalog Operator Interface (MEDIACOM) Manual
MEDIACOM Commands
DSM/Tape Catalog Operator Interface (MEDIACOM) Manual—429828-010
2-149
OBEY Command
OBEY Command
OBEY executes one or more MEDIACOM commands in a file. MEDIACOM displays
each command as it is performed. A command file can have as many MEDIACOM
commands as you need.
After executing the commands in the file, MEDIACOM prompts for the next command.
A command file is typically created through an editor such as TEDIT. Each text line in
the file is treated as a separate MEDIACOM command line. The same rules that apply
to interactive MEDIACOM commands apply to commands in a command file.
\node.$volume.subvolume.obey-file
is the name of a file containing MEDIACOM commands. Include \node, $volume,
or subvolume name if you do not want to use the default node, volume, or
subvolume names set by the VOLUME command. (While D-series system
software does not support the defaulting of a subvolume name, MEDIACOM does.)
Considerations
Session default commands in a command file
If commands that set session defaults, such as FILECAT or VOLUME, are used in
the command file, the values they set remain in effect for the duration of
processing of that command file. When processing of the command file finishes,
the session settings revert to their values from when the OBEY command was
issued.
Nesting command files
Command files can be nested to a depth of four. For example, from the
MEDIACOM prompt, you enter the command OBEY FILE1. FILE1 contains the
command OBEY FILE2, FILE2 contains the command OBEY FILE3, and FILE3
contains the command OBEY FILE4.
Command file error handling
When MEDIACOM encounters an error while executing a command file; for
example, an illegal command; it displays an error message and stops. Any
commands left to be executed in the file are ignored.
Stopping the execution of a command file
Press the BREAK key to stop the execution of a command file. MEDIACOM stops
processing commands and closes the file.
Using FC after executing a command file
OBEY [ \node.][$volume.][subvolume.]obey-file