NET/MASTER Network Control Language (NCL) Reference Manual

C2X
Built-in Functions
4–28 106126 Tandem Computers Incorporated
C2X The C2X built-in function converts a string to its hexadecimal equivalent.
C2X(
string
)
string
specifies the string to be converted.
Considerations
A null input string returns a null string.
The resulting output is exactly twice as long as the input string.
An input string must not be greater than 16,000 characters.
An output string longer than the maximum supported length of 32,000 characters
results in an error.
See also X2C, which converts a string of hexadecimal characters to its
alphanumeric equivalent.
Example
In the following example, the string “abc123” is assigned to the variable &A and
converted to an output string of “616263313233”:
&A = abc123
&RESULT = C2X(&A)