You sent me the same question offline (please use either the board or e-mail to ask a question - NOT BOTH). Here's my reply:
It isn't clear what you think hexa format means. Hexadecimal is simply a representation of a value in base 16. All values can be represented in hexadecimal.
The real question is, what is the format of your input values (ZD, BI, PD, something else) and what format do you want for the output.
If the data sample you show is the input, then the values are a combination of ZD numbers, commas and binary zeros, so i don't know what kind of conversion you think you need to do. The ZD values and commas are already in "character format", that is, they are displayable. Do you just want to convert the binary zeros to blanks? Or do you want to do something else? What?
You would have to show me an example of your input values in hexadecimal and what you want for output in hexadecimal for me to be able to help you.
Take a look at this description of the various DFSORT formats and see if that helps you figure out what you have/need:http://publibz.boulder.ibm.com/cgi-bin/ ... 0630155256