bdfs1m0v | Structured Programming Macros |
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:
Format
|
Notes:
Entry Requirements
None.
Return Conditions
Programming Considerations
Before the conversion: |
R14 points to CONX0, which contains X'C1FFF3'. R15 points to EBW000. Length is 3. |
After the conversion: |
R14 points to CONX0+3. EBW000 contains C'C1FFF3'. R15 points to EBW000+6. |
LA R14,CONX0 LA R15,EBW000 LA R0,L'CONX0 #CONX INPUT=R14,TO=R15,LENGTH=R0 : CONX0 DC X'C1FFF3'
Before the conversion: |
R14 points to CONX1, which contains X'C1C2FFC4'. R15 points to EBW050. The length defaults to 1. |
After the conversion: |
R14 points to CONX1+1. EBW050 contains C'C1'. R15 points to EBW050+2. |
LA R14,CONX1 LA R15,EBW050 #CONX INPUT=R14,TO=R15 : CONX1 DC X'C1C2FFC4'
Before the conversion: |
R14 points to CONX2, which contains X'C3F361F5C4C1'. R15 points to EBW070. Length is 5. |
After the conversion: |
R14 points to CONX2+5. EBW070 contains C'C3F361F5C4'. R15 points to EBW070+10. |
LA R14,CONX2 LA R15,EBW070 LA R0,5 #CONX INPUT=R14,TO=R15,LENGTH=R0 : CONX2 DC X'C3F361F5C4C1'
Related Macros
#CONP-Convert Binary to Character Hexadecimal with EBCDIC Interpretation.