NET/MASTER Network Control Language (NCL) Programmer's Guide
Sharing Variables to Procedures and Functions
Procedures and Functions
106160 Tandem Computers Incorporated 6–29
The following screen shows the results of executing the procedure:
(08:53) --------------------- OPERATOR CONTROL SERVICES ----------------------
START ZEX0625N
Pre-function call var_1 is One
Post-function call (NOSHRVARS), var_1 is One
Post-function call (SHRVARS), var_1 is Two
NNM1005 START ZEX0625N PROCESSING COMPLETE. NCLID 000088
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
When the CONTROL_FUNC function is called for the first time, the default setting of
CONTROL NOSHRVARS prevents variables being shared to CONTROL_FUNC.
Accordingly, the value of &VAR_1 does not change. When the CONTROL_FUNC
function is called for the second time, the CALL statement enables variable sharing,
and so the value of &VAR_1 is changed.