Safeguard Reference Manual (G06.29+, H06.08+, J06.03+)

Table Of Contents
SAFECOM Session-Control Commands
Safeguard Reference Manual 520618-030
4 - 23
SYNTAX Command
Example
This example shows the use of the OUT command to produce a listing of all the
SAFECOM help screens:
=OUT $s.#lp1
=HELP ALL
=OUT
The last OUT command redirects SAFECOM output text to the original output file; in
this case, the home terminal.
SYNTAX Command
SYNTAX enables and disables syntax-only mode. In syntax-only mode, SAFECOM
only checks the syntax of commands. It does not execute the commands. You can
execute only four SAFECOM commands in syntax-only mode: SYNTAX, ASSUME,
OBEY, and EXIT.
SYNTAX [ ONLY ]
specifies that SAFECOM syntax-only mode is enabled or disabled. The keyword
ONLY is optional and can be included for readability.
ON
specifies that syntax-only mode is enabled.
OFF
specifies that syntax-only mode is disabled.
Consideration
After each command is checked for syntactical correctness, SAFECOM issues a
message.
For each command that is syntactically correct:
* WARNING * SAFECOM IS IN SYNTAX ONLY MODE; COMMAND NOT
EXECUTED.
For each command that contains a syntax error:
ILLEGAL SYNTAX
Example
To enable syntax-only mode:
=SYNTAX ON
SYNTAX [ ONLY ] { ON | OFF }