Page 1 of 1

Hexa Values

PostPosted: Thu Sep 03, 2009 10:55 pm
by chetan_007
Hi,

In some of the datasets, data will be in HEXA DECIMAL Format, so how to read HEXA Values.
If we put HEX ON, there will be some details.... But how exactly can we read these values.

Plz let me know.

Thanks

Re: Hexa Values

PostPosted: Thu Sep 03, 2009 11:38 pm
by Frank Yaeger
Anything can be represented as hexadecimal. Each byte can be represented as X'00'-X'FF'. You must know what type of data you are looking at - you can't necessarily tell from its hexadecimal representation. Sometimes you can guess. For example, X'12345C' would probably be a PD value of +12345 and X'F1F2D3' would probably be a value of -123. But in many cases, you can't tell just by looking at the hex values - you have to know how the field was defined, especially if there's an implicit decimal point (e.g. X'F1F2D3' could represent -1.23).

Re: Hexa Values

PostPosted: Fri Sep 04, 2009 1:04 am
by dick scherrer
Hello,

But how exactly can we read these values.
Using some utility or in your own code?

If you explain what you "have" and what you want to do with it, someone will be able to offer suggestions.

A good approach would be to post a bit of the input data (in hex) and what output you want from that sample input. When posting, please use copy/paste and the Code tag (use Preview to see your post as it will appear to the forum). When the post appears as you want, Submit.

Also, mention the recfm and lrecl of the files and the "rules" for getting from the input to the output.