NET/MASTER Network Control Language (NCL) Reference Manual
X2C
Built-in Functions
106126 Tandem Computers Incorporated 4–111
X2C The X2C built-in function converts a string of hexadecimal characters to its ASCII
equivalent.
X2C(
string
)
string
specifies the string that is converted. The string must consist of 0-9, A-F, or a-f
characters only. Spaces are permitted at byte boundaries. If an odd number of
hexadecimal characters is found, a single 0 (zero) is added to the front of the
string.
Considerations
If a null string is specified, a null string is returned.
See also C2X, which converts a string to its hexadecimal equivalent.
Example
In the following example, the string “616263313233” is returned as “abc123”:
&A = 616263313233
&RESULT = X2C(&A)