$HexA
<section begin="desc" />Convert hexadecimal string to EBCDIC equivalent<section end="desc" />
Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $HexA function is to be entered.
This function converts a hexadecimal string to its EBCDIC equivalent.
The $HexA function accepts one argument and returns a string result.
The first argument is a string containing the characters
Syntax
<section begin="syntax" /> %EBCDIC = $HexA(hex_string) <section end="syntax" />
For example, in
%JUNK = $HexA('F1F2F3')
%JUNK would be set to the string '123' (EBCDIC X'F1F2F3'), and in
%JUNK = $HexA('102')
%JUNK would be set to EBCDIC X'0102' which is a non-displayable string.