NET/MASTER Network Control Language (NCL) Reference Manual

Compiler Directives
Compiler Operation
106126 Tandem Computers Incorporated 8–13
text
can contain any characters, including illegal characters, since the compiler does
not analyze them.
During compilation, NCL reports a fatal compilation error if
symbol
has already been
used in a define directive, and compilation stops immediately.
Here are some examples of how the %%DEFINE compiler directive is used:
Assign a long verb to a short symbol:
%%DEFINE wr write intens=high alarm=yes data=The data is
Assign constant numbers to more meaningful symbols:
%%DEFINE columns 80
%%DEFINE rows 24
%%INCLUDE The %%INCLUDE directive specifies the name of another source file to be logically
included in the current NCL procedure or function. The included source file logically
replaces the compiler directive.
%%INCLUDE
filename
filename
is the name of any edit file, such as an external NCL procedure or function.
During compilation, NCL reports a fatal compilation error if it cannot find the file or if
the included file ends in an open comment or open quoted string. Compilation stops
immediately.
Here are some examples of how the %%INCLUDE compiler directive is used:
Include the error handler errorh in the current NCL source file:
%%INCLUDE errorh
Include the function func1 in the NCL source file:
%%INCLUDE func1
%%OPTIONS The %%OPTIONS directive controls the compilation of unrecognized verbs and
unknown system variables.
%%OPTIONS { DEFER | NODEFER }
DEFER
When DEFER is used, NCL continues compilation even if it detects an
unrecognized verb or unknown system variable during a test compilation.