NET/MASTER Network Control Language (NCL) Reference Manual

XRANGE
Built-in Functions
106126 Tandem Computers Incorporated 4–113
XRANGE The XRANGE built-in function returns a string of ASCII characters in a specified
range.
XRANGE( [
start
] [,
end
] )
start
specifies the start value.
start
must be exactly one character long. If omitted, the
default is '00'x, which represents a hexadecimal value of 0 (zero).
end
specifies the end value.
end
must be exactly one character long. If omitted, the
default is 'FF'x.
Considerations
The range is wrapped if
start
is greater than
end
. That is, the range of values
returned is inclusive of all characters from
start
through
end
.
If both
start
and
end
are equal, exactly one character is returned.
Examples
In the following example, the resulting string “abcdef” is returned:
SAY XRANGE(a,f)
In the following example, the resulting string “ ” (five spaces) is returned. Its
hexadecimal value is '0304050607'x, and it has no displayable ASCII equivalent:
SAY XRANGE('03'x,'07'x)