Conversion macros

Table 1 summarizes the conversion macros and provides an example of a string before and after the conversion.

Note: The results that are shown in this table are also based on other parameters being specified a certain way. For details about all the parameters that are associated with each macro, see the information for each macro in z/TPFDF structured programming macros.
Table 1. Conversion macro summary
Macro Description Before Conversion After Conversion
#CONB Character decimal to binary C"12713971" X'C1FFF3'
#CONBG Character decimal to binary 64-bit signed number C"2147483649" X'80000001'
#COND Binary to character decimal X'0000F394' C"00062356"
#CONDG Binary 64-bit signed number to character decimal X'0000000080000001' C''2147483649''
#CONH Character hexadecimal to binary C"12713971" X'12713971'
#CONP Binary to character hexadecimal with EBCDIC interpretation X'C1FFF3' C" AFF 3"
#CONS Binary to character decimal with zero suppression X'0000F394' C"62356"
#CONT Binary to character binary F"43" C"00101011"
#CONX Binary to character hexadecimal X'C1FFF3' C"C1FFF3"