Hex format to readbale format.

JES2/3, JCL, utilities.
Post Reply
Tanveer Alam
Registered Member
Posts: 10
Joined: Thu Feb 06, 2014 12:11 am

Hex format to readbale format.

Post 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
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Hex format to readbale format.

Post 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".
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Hex format to readbale format.

Post 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.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”