


ASCII2HEX converts binary data to its hexadecimal format. This routine is the inverse of the HEX2ASCII routine.
Usage
CALL "ASCII2HEX" USING ASCII-VALUE, HEX-VALUE
Parameters
ASCII-VALUE PIC X(2)
Input data area containing the ASCII representation of a unit of data
HEX-VALUE PIC X(4)
Output data area to contain the hexadecimal value
Note: When you are defining the parameters, use the exact field sizes specified in the calling conventions above, otherwise the runtime may terminate abnormally.