I have a flatfile input that has several fields which I should reformat.
For instance, a packed decimal which consumes 7 bytes(the input is numeric) must be transformed into a 15-byte alphanumeric with a sign and decimal point, etc.
At this point there is no issue because the input can be declared as packed decimal, store it in a numeric field and then pass it to a alphanumeric field including the sign and decimal point. Let me state it as a Hexadecimal Number.
The problem is I have a certain char input field, for example a period(.) and I need to extract its hexadecimal value, 2E.
Basically, if the input is period, the output should be 2E. Let me call it Hexadecimal Text.
The input cannot be declared as packed decimal as it will abend, it worked if I declare it as binary to alphanumeric but I am getting its decimal value, which in this example is 46.
Is there a way I can convert a Hexadecimal Text to alphanumeric?
P.S. I know there are ways to do this in other languages but I need to do it in Easytrieve only.
YDDA
----
ECCC
8441