Stupid question really, but I can't figure this out. I have a byte in a file on my PC that (using a hex editor) is shown as '43'x. This is in fact a length of a record and should convert to 67 (43 hex = 67 decimal).
I've read the data n using CHARIN, but for the life of me, can't figure out how to "convert/use" the hex character so that it becomes a valid decimal, such that I can do something like
rec_length = conversion(my_byte)
record = SUBSTR(record,2)
actual_record = LEFT(record,rec_length)
any help much appreciated |