Returns a hexadecimal string that is the expansion of the supplied text according to EBCDIC encoding.
&HEXEXP text
&HEXEXP provides a means of converting a character string to its hexadecimal equivalent.
&HEXEXP is a built-in function and must be used to the right of an assignment statement.
Operands:
The character string for conversion, which is regarded as starting one blank after the &HEXEXP keyword.
Examples:
&1 = &HEXEXP ABCD -* &1 will be set to C1C2C3C4
&Z = &HEXEXP 3C -* &Z will be set to F3C3
Note:
&HEXPACK provides the reverse facility. The maximum length of a character string that is expanded is 128 bytes.
| Copyright © 2009 CA. All rights reserved. |
|