SORT – CONVERT PD to ZD and BI to ZD

In most of the scenarios, your input file has data either in Packed decimal (COMP-3) format or Binary (COMP) format which is not in readable format. To change this to readable format, you need to convert these numbers into ZONED Decimal (ZD) format. This can be accomplished using SORT.

BI to ZD

Suppose your input file has first 4 bytes in Binary format and you want it in displayable format