CALL "ASCII2HEX" USING asciiValue hexValue |
asciiValue | PIC X(n) | Specifies the ASCII characters to be converted. |
hexValue | PIC X(n) It should be twice the size of asciiValue | Receives the hexadecimal value of asciiValue. |
*> both variables should be pic x(n), however, the hexValue variable *> should have at least double of the lenght of the asciiValue move "AZ" to asciiValue call "ascii2hex" using asciiValue hexValue *> hexValue will contain: 415A |