NET/MASTER Network Control Language (NCL) Reference Manual
FUNCTION
Core Statements
2–20 106126 Tandem Computers Incorporated
label
specifies the function. You must specify at least one label for a function. If this is
an external function definition (the FUNCTION statement is the first statement in
the file), NCL treats the label(s) attached to this function as extra, internal labels
for the function. These labels are visible only to statements within the same source
file.
The external name of an external function is the name of the containing source file.
label
can have any valid symbol value. It must be unique within the scope of the
function definition. This includes all functions or procedures directly under the
same parent function or procedure.
See Section 8, “Compiler Operation,” for the definition of valid NCL labels.
SHARE
specifies whether the current variable-sharing status is to be overridden for this
function call and whether variable sharing is to be enabled. If this operand is not
specified, NCL uses the setting of the [NO]SHRVARS operand of the CONTROL
verb.
share-list
specifies one or more variables that are to be shared, or not shared, with the
function. The CALLER keyword can be part of the list. The terms must be
separated by commas.
element
specifies a variable type or the CALLER keyword.
&*
specifies any variable type that can be shared, in which * can be any
combination of characters that can legitimately form a variable name.
&
simple-variable
[*]
specifies a simple variable, in which * can be any combination of
characters that can legitimately form a variable name.
&
stem-variable
.[*]
specifies a stem variable, in which * can be any combination of
characters that can legitimately form a variable name.
CALLER
specifies that the list of variables currently specified in the calling
environment replaces this keyword.