Page 1 of 1

hex to readable data

PostPosted: Sat Aug 26, 2017 2:37 am
by chandra_ravi
I need to convert one of the dataset into readable.
I could handle most of the conversions except for one category.
The program moves data as Move X’01’ to variable of type X(1).
One of the record from dataset is shown below in HEX ON Mode. I want to convert the last character which
looks like . to 10

1......
F000000
110000A


How can I read this in SORT? It’s not ZD, PD, BI.
TRAN=UNHEX won’t work as well in this case as data is fit into one character.
If data is really 0A , then I see examples where TRAN=UNHEX is helpful.

I referred to multiple blogs. One blog looks close but has no solution.
Please advise.

Coded

Re: hex to readable data

PostPosted: Fri Sep 01, 2017 7:14 pm
by edipoliveira
could you post your code, I always use the TRAN=UNHEX and it works.