Hexa Values

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Hexa Values

Postby chetan_007 » Thu Sep 03, 2009 10:55 pm


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.

Posts: 24
Joined: Sun Mar 02, 2008 3:22 am
Has thanked: 0 time
Been thanked: 0 time

Re: Hexa Values

Postby Frank Yaeger » Thu Sep 03, 2009 11:38 pm

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).
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 14 times

Re: Hexa Values

Postby dick scherrer » Fri Sep 04, 2009 1:04 am


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.
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Return to JCL


  • Related topics
    Last post