HEXTOBIN function [Data type conversion]

The HEXTOBIN function returns a LONG BINARY string. If the number of characters in the input is odd, it is left-padded with
a zero. The length of the result is the length of the input string divided by 2. If the input string contains any non-hexadecimal
characters, an error is returned.

The HEXTOBIN function accepts string literals or variables consisting only of digits and the uppercase or lowercase letters
A-F.

The BINTOHEX, CAST, CONVERT, HEXTOBIN, HEXTOINT, and INTTOHEX functions can be used to convert to and from hexadecimal values.
For more information about using these functions, see Converting to and from hexadecimal values.