NET/MASTER Network Control Language (NCL) Reference Manual
Summary of Built-in Functions
Built-in Functions
106126 Tandem Computers Incorporated 4–3
Table 4-1. List of Built-in Functions (Page 3 of 3)
Built-in Function Description
STRIP Strips leading and/or trailing occurrences of a specified character from a string.
SUBSTR Extracts a substring from a string, starting from a specified character position
within the string.
SUBWORD Extracts a substring from a string, starting from a specified word in the string.
SYMBOL Tests the supplied name to determine if it is a valid NCL variable name.
TEXTTOSSID Translates an external format string to an internal format SSID.
TIME Returns the current time in one of several formats.
TRANSLATE Translates all or part of a specified string according to input and output
translation tables.
TRUNC Truncates a number to a specific number of decimal places.
TYPECHK Performs type checking on one or more strings.
UPPER Converts a specified string to uppercase characters in the native (ASCII)
character set.
VALDEV1 Determines whether a supplied string is a valid Guardian device name.
VALDEV2 Determines whether a supplied string is a valid Guardian device name and if it
exists.
VALFILE1 Determines whether a supplied string is a valid Guardian file name.
VALFILE2 Determines whether a supplied string is a valid Guardian file name and if it
exists.
VALFILE3 Determines whether a supplied string is a valid Guardian file name, and returns it
with the volume or subvolume names, if missing.
VALPROC1 Determines whether a supplied string is a valid Guardian process name.
VALPROC2 Determines whether a supplied string is a valid Guardian process name and if it
exists.
VARSUB Performs variable substitution on a string and returns the substituted string.
VERIFY Verifies that one or more characters in a string are also in a specified reference
string.
WORD Extracts a word from a string.
WORDINDEX Returns the character position of the first character of a specified word in a
specified string.
WORDLENGTH Returns the length of a specified word in a string.
WORDPOS Returns the first position of a word or a phrase of words within a specified string.
WORDS Returns the number of words in a specified string.
X2C Converts a string of hexadecimal characters to its ASCII equivalent.
X2D Converts a hexadecimal string to a decimal number.
XRANGE Returns a string of binary character values in a specified range.
ZFEATURE Indicates whether this system is enabled for selected features.
ZNCLKWD Indicates whether a specified string is an NCL system or global variable.