Load hex values of EBCDIC character set into a table

To get “the hex representation of a variable” you would need to redefine it, as in

01 #H2 (A2)
01 REDEFINE #H2
  02 #H2HEX (B2)