Returns a character string that is the EBCDIC encoding of the supplied hexadecimal values.
&HEXPACK hexstring1 [ hexstring2 .... hexstringn ]
&HEXPACK is a built-in function and must be used to the right of an assignment statement.
Operands:
A series of hexadecimal strings for conversion. Each string must contain only valid hexadecimal characters (0 to 9, A to F). If there is an odd number of characters within a string, that string is padded on the left with a zero before conversion.
The converted strings are concatenated into a single value. A string can contain hexadecimal representations of non-displayable characters for conversion to their hexadecimal equivalent. This lets you assign true hexadecimal values into variables.
Examples: &HEXPACK
&1 = &HEXPACK C1C2C3C4 -* &1 is set to ABCD
&Z = &HEXPACK 03FF 0D25 -* &Z is set to X'03FF0D25'
Notes:
The total sum of the concatenated variables or constants cannot exceed the maximum size for one variable.
| Copyright © 2009 CA. All rights reserved. |
|