OCTAL2ASCII

OCTAL2ASCII converts data presented in octal format to its ASCII equivalent. This routine is the inverse of the ASCII2OCTAL routine.

Usage

CALL "OCTAL2ASCII"
    USING ASCII-VALUE, OCTAL-VALUE

Parameters

ASCII-VALUE PIC X(2) The ASCII representation of a unit of data.
OCTAL-VALUE PIC X(8) The octal value.

When you are defining the parameters, use the exact field sizes specified in the calling conventions above, otherwise the runtime may terminate abnormally.

Any characters that are not valid octal digits are treated as the digit 0. Trailing spaces are removed from the input value.