Page 1 of 1
Hex format to readbale format.
Posted: Wed Dec 29, 2021 12:16 am
by Tanveer Alam
Hi,
A file has records in Hex format from column 1 to 478
I want to convert each and every bit of it in readable format
Re: Hex format to readbale format.
Posted: Wed Dec 29, 2021 3:25 am
by Robert Sample
Your post makes absolutely no sense as you wrote it. A data set (files are rare on the mainframe) CANNOT have hex data in one continuous stream from bytes 1 to 478. Depending upon the type of data, a field can vary from 1 to 16 bytes and that will be it. So you have between 30 and 478 fields in your data set, depending upon the specifics. Each field must be interpreted separately.
Furthermore, when you say "hex format" what do you mean -- binary data? packed decimal data? EBCDIC text data that you don't know how to convert to ASCII?
The conversion can be done but depending upon the specifics (again), the record length could possibly double from 478 to 956 bytes. If you provide more details, we can give you more help. But with what you've provided so far, all we can do is say "good luck in that".
Re: Hex format to readbale format.
Posted: Wed Dec 29, 2021 6:52 pm
by Anuj Dhawan
You need to do a better job in explaining the question.
Terminology is important in IT, where the same term/s can mean very different depending on the context. Pardon me but in just two lines
you've coined out some words which don't talk to each other - think, how would they convey anything to us to answer.
Suggest you post the content from the "file" (dataset - get that correct, in agreement with Robert. ) and expected output from that.