MPE/iX Intrinsics Reference Manual (32650-90875)

568 Chapter9
Command Definitions (MAIL-PUTJCW)
NLTRANSLATE
NLTRANSLATE
NM and CM callable.
Translates a string of characters from EBCDIC-to-ASCII or ASCII-to-EBCDIC using the
appropriate native language table.
Syntax
I16V CA CA
NLTRANSLATE(
transcode,inbuffer,outbuffer,
I16V I16V U16A
bufferlength,langnum,error
,
CA
transtable
);
Parameters
transcode
16-bit signed integer by value (required)
Passes the translation direction:
Value Meaning
1 EBCDIC-to-ASCII translation
2 ASCII-to-EBCDIC translation
inbuffer
character array (required)
Passes the string to be translated.
outbuffer
character array (required)
Contains the translated string. The parameters
inbuffer
and
outbuffer
can specify the same array.
bufferlength
16-bit signed integer by value (required)
Passes the number of bytes of
inbuffer
to be translated.
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 Invalid
transcode
specified