HEX returns a character string that is the hexadecimal representation of the storage that contains x.
|
HEX(x) returns a character string of length 2 * size(x).
HEX(x,z) returns a character string that contains x with the character z inserted between every set of eight characters in the output string. Its length is 2 * size(x) + ((size(x) - 1)/4).
Under the compiler option USAGE(HEX(CSTG)), the length used in the above calculations is based, for VARYING and VARYINGZ strings, on cstg(x) rather than on stg(x).
Integer, offset and pointer values will be presented in bigendian form.