A character string must not have a maximum length greater than 4000. A graphic string must not have a maximum length greater than 2000.
The HEX function is currently restricted to EBCDIC tables.
If the argument can be null, the result can be null; if argument's value is null, the result is the null value.