NET/MASTER Network Control Language (NCL) Reference Manual
DATATYPE
Built-in Functions
106126 Tandem Computers Incorporated 4–35
S (symbol)
string
 is a valid symbol.
U (uppercase)
string
 contains only the characters A through Z.
W (whole number)
string
 contains a valid whole number (integer). The maximum allowed
value of the number is 32767.
Consideration
See also TYPECHK, which performs type checking on one or more strings for all the
types discussed here, and others.
Examples
In the following example, no value is specified for 
type
. Because the string is a valid
number, NCL returns NUM:
SAY DATATYPE( 12 )
In the following example, no value is specified for 
type
. Because the string is not a
valid number, and is therefore assumed to be a valid character, NCL returns CHAR:
SAY DATATYPE(“/”)
In the following example, no value is specified for 
type
. Because the string is not a
valid number, and is therefore assumed to be a valid character, NCL returns CHAR:
SAY DATATYPE($)
In the following example, N (number) is specified for 
type
. NCL returns a value of 1.
The test shows that the string is a valid whole number:
&A = 12.3
&B = N
&RESULT = DATATYPE(&A,&B)
In the following example, W (whole number) is specified for 
type
. NCL returns a
value of 0 (zero). The test shows that the string is not a valid whole number:
SAY DATATYPE(12.3,W)










