NET/MASTER Network Control Language (NCL) Reference Manual
PARSE
Verbs
106126 Tandem Computers Incorporated 3–145
VARS
input-vars-list
specifies that NCL is to place the data string into variables. Each word of the
string is split into the supplied variables from left to right. If too few variables
are specified, data is missing. Excess variables are given no value—they are
set to the null string. Multiple variables must be enclosed in parentheses and
separated by commas.
variable*
specifies a set of variables. See “Frequently Occurring Operands,” at the
beginning of this section, for more information.
RANGE=(
start
,
end
)
determines the range of variables specified by the VARS operand. See
“Frequently Occurring Operands,” at the beginning of this section, for more
information.
SEGMENT=
n
specifies the amount of data (in bytes) to be put into the variables specified.
See “Frequently Occurring Operands,” at the beginning of this section, for
more information.
DELIM=
text
specifies the delimiter character, or a series of delimiter characters, that are to be
used as the argument for the parsing process.
text
must be enclosed in single or
double quotes. Every occurrence of a DELIM character in the
DATA=
rest-of-statement
string represents the end of a section of the data.
The section, minus the delimiter character, is placed in the next target variable,
and the parsing process continues. Special-case processing takes place when a
blank is detected as the delimiter character. If you specify a blank—or if the blank
is the default—it is never recognized as such when found after a nonblank
recognized delimiter. Once this condition occurs, a blank begins to act as a
delimiter again only after a character that is neither a blank nor a delimiter
appears in the string.
If DELIM is not specified, the default delimiter is a blank.
OPT=
optlist
specifies that each element of
optlist
can consist of ASIS or NONULLS.
Brackets are mandatory around
optlist
if more than one element is supplied.