ENABLE Reference Manual
OPERATING COMMANDS
OBEY Command
OBEY Command
The OBEY command causes commands to be read from a specified
file. The syntax of the OBEY command is:
-----------------------------------------------------------------
| |
| OBEY <filename> |
| |
| <filename> |
| |
| is a Tandem file name. |
| |
-----------------------------------------------------------------
Considerations
If you do not supply a complete file name, ENABLE expands the
obey file name with the default OBEYSYS and OBEYVOL settings.
When you enter the OBEY command, ENABLE reads and processes the
commands from the named file until it encounters an end-of-file.
At end-of-file, ENABLE closes the obey file and accepts command
input from the file (or terminal) from which the OBEY command was
read. You can specify additional OBEY commands within an obey
file. Obey files can be nested to a depth of four.
ENABLE displays an error message and continues to accept command
input from the file from which the OBEY command was entered if:
• The obey command is invalid
• The obey file does not exist
• The obey file cannot be opened
If ENABLE detects an error during processing of commands from an
obey file, it:
• Issues an error message
• Terminates processing from the obey file (and any other obey
files currently open in the case of nested obey files)
• Closes the obey file and any other obey files currently open
5-14