NET/MASTER Network Control Language (NCL) Reference Manual

Using PARSE and SEGMENT
Verb Syntax and Variable Access Methods
11–30 106126 Tandem Computers Incorporated
OPT=NONULLS specifies the action to take if two consecutive delimiters are found
within a string. When two consecutive delimiters occur in the string, there is an
implied null section; that is, there is a section of zero length between the delimiters. If
you omit OPT=NONULLS, a null variable is created. If you specify NONULLS, then
the zero length section is ignored, and no null variable is created.
In the following example, which omits OPT=NONULLS, a null variable is created
from the null value between the two consecutive commas in the text:
PARSE DELIM="," ARGS DATA="123,,456,789, ABC"
The results are:
&1 = 123
&2 = null
&3 = 456
&4 = 789
&5 = ABC
However, in the following example, which specifies OPT=NONULLS, the null section
between the two consecutive commas in text is ignored:
PARSE DELIM="," ARGS OPT=NONULLS DATA="123,,456,789, ABC"
The results are:
&1 = 123
&2 = 456
&3 = 789
&4 = ABC