z/OS TSO/E REXX Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


X2C (Hexadecimal to Character)

z/OS TSO/E REXX Reference
SA32-0972-00

Read syntax diagramSkip visual syntax diagram
>>-X2C(hexstring)----------------------------------------------><

returns a string, in character format, that represents hexstring converted to character. The returned string is half as many bytes as the original hexstring. hexstring can be of any length. If necessary, it is padded with a leading 0 to make an even number of hexadecimal digits.

You can optionally include blanks in hexstring (at byte boundaries only, not leading or trailing) to aid readability; they are ignored.

If hexstring is null, the function returns a null string.

Here are some examples:
X2C('F7F2 A2')    ->    '72s'       /*  EBCDIC                     */
X2C('F7f2a2')     ->    '72s'       /*  EBCDIC                     */
X2C('F')          ->    ' '         /*  '0F' is unprintable EBCDIC */

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014