MPE/iX Intrinsics Reference Manual (32650-90875)
564 Chapter9
Command Definitions (MAIL-PUTJCW)
NLSUBSTR
Asian character:
0000 Return an error condition
0001 Start from
startposition
+1
0010 Start from
startposition
-1
0011 Start from
startposition
, but replace character with a
blank in
outstring
0100 Start from
startposition
regardless
8:4 Used if the last character in a substring is the first byte of a 2 byte Asian
character:
0000 Return an error condition
0001 Move until
movelength
+1
0010 Move until
movelength
-1
0011 Move until
movelength
, but replace character with a
blank in
outstring
0100 Move until
movelength
regardless
0:8 Reserved for the operating system
error
16-bit unsigned integer array (required)
Returns two elements: the first element is the error number; the second
element is reserved and always returns 0. The possible error number
values are:
Value Meaning
0
Successful
1 *NLS not installed
2 *Specified language not configured
3 Not returned
4 Not returned
5 *NLS internal error
6 *NLS internal error
7 Invalid
inlength
8 Invalid
startposition
9 Invalid table element
10 Reserved portion of
flags
not zero
11 Invalid value for
flags
( 8:4)
12 Invalid value for
flags
(12:4)
13 *Start position first byte of an Asian character, or an
overflow condition occurred due to
flags