bdfs1m0pStructured Programming Macros

#CONB-Convert Character Decimal to Binary

Use this macro to generate inline code to convert a character decimal number to a binary value. A character decimal number is a number represented in a string that contains only EBCDIC 0-9.

Note:
See Table 1 for a summary of all the conversion macros.

Format




Notes:

  1. If you do not specify the MAX parameter, the maximum number of characters defaults to 16 bytes.

INPUT=reg1
specifies a register, reg1, that points to the start of the string to convert.

TO=reg2
specifies a register, reg2, that will contain the converted binary value. Do not use R0 for reg2.

MAX=reg3
specifies a register, reg3, that contains a binary number indicating the maximum number of characters to convert. Leading zeros (C'0') in the input string are ignored. You can specify a maximum of 16 bytes.

WORK=workarea
specifies a 16-byte work area.

Entry Requirements

None.

Return Conditions

Programming Considerations

Examples

Related Macros

#CONH-Convert Character Hexadecimal to Binary.