NET/MASTER Network Control Language (NCL) Reference Manual
ZNCLKWD
Built-in Functions
106126 Tandem Computers Incorporated 4–115
ZNCLKWD The ZNCLKWD built-in function indicates whether a specified string is an NCL
system or global variable. NCL returns a true value of 1 or a false value of 0 (zero).
ZNCLKWD(
string
)
string
specifies the string to be tested. It is always changed to uppercase before testing
begins.
Consideration
See also SYMBOL, which tests the supplied name to determine if it is a valid NCL
variable name.
Examples
In the following example, the string “FRED” does not begin with “SYS.” or “GLBL”, so
0 (zero) is returned:
SAY ZNCLKWD(FRED)
In the following example, the string “SYS.A.B” does begin with “SYS.”, so 1 is
returned:
&A = SYS.A.B
&RESULT = ZNCLKWD(&A)