NET/MASTER Network Control Language (NCL) Reference Manual

CALL
Core Statements
2–4 106126 Tandem Computers Incorporated
CALL The CALL core statement calls an NCL procedure. Arguments can be passed to the
called procedure. You can either share or not share variables with the called
procedure by specifying the variables in a list (share list). The called procedure
executes sequentially in the context of the caller. That is, NCL suspends the caller until
the called procedure completes.
The CALL statement interacts with other core statements, such as DO, GOSUB, ON,
and PROCEDURE. For example, when calling a procedure, all current DO, GOSUB,
and ON nesting levels are saved.
The CONTROL verb also has significant operational effects relevant to this statement.
In particular, all current CONTROL verb settings from the calling procedure are
preserved except the SHRVARS setting.
CALL [ PROC | PROCEDURE ] {
name
| "
name
" | (
expr
) }
[ (
args
,… ) ]
[ { SHARE | NOSHARE } {
share-list
| NO } ]
share-list
=
element
[,
element
] …
element
:
&*
&
simple-variable
[ * ]
&
stem-variable
[ * ]
CALLER
[ PROC | PROCEDURE ]
specifies an optional entry that NCL treats as a comment.
name
specifies the name of an NCL procedure. The NCL procedure name must be a
valid symbol. The search sequence followed is:
1. Internal procedure label
2. External procedure name
See Section 8, “Compiler Operation,” for the definition of valid NCL labels.
"
name
"
specifies the name of an NCL procedure. The NCL procedure name must be a
valid symbol (in quotes).