ASCII2OCTAL

ASCII2OCTAL converts binary data to octal format. This routine is the inverse of the OCTAL2ASCII routine.

Usage

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

Parameters

ASCII-VALUE PIC X(2) The input data area containing the ASCII representation of a unit of data.
OCTAL-VALUE PIC X(8)    The output data area to contain the octal value.

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