bdfs1m0vStructured Programming Macros

#CONX-Convert Binary to Character Hexadecimal

Use this macro to generate inline code to convert binary data to character hexadecimal. Unlike the #CONP macro, #CONX converts each byte to character hexadecimal. For example:

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

Format




Notes:

  1. If you do not specify the LENGTH parameter, the length defaults to 1 character.

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

TO=reg2
specifies a register, reg2, that points to the location that will contain the converted value.

LENGTH=reg3
specifies a register, reg3, that contains the number of bytes to convert.

Entry Requirements

None.

Return Conditions

Programming Considerations

Examples

Related Macros

#CONP-Convert Binary to Character Hexadecimal with EBCDIC Interpretation.