I have a column, (say Mixed_Value), in a table, defined as CHAR(17).
It is populated from a dataset defined, (in COBOL), as follows;
03 Group-a.
05 Alpha-Value pic x(13).
05 Num-value pic s9(8) comp.
So, an ASCII / Hex "Dump" of Group-a looks like;
EMPRCENTTERMX
CDDDCCDEECDDE0000
54793553359470001
Question - how, using SQL, can I find the value of the Num-value part of Mixed_Value ?
I have tried various variations of substr(Mixed_value), with no success.
It is populated from a dataset defined, (in COBOL), as follows;
03 Group-a.
05 Alpha-Value pic x(13).
05 Num-value pic s9(8) comp.
So, an ASCII / Hex "Dump" of Group-a looks like;
EMPRCENTTERMX
CDDDCCDEECDDE0000
54793553359470001
Question - how, using SQL, can I find the value of the Num-value part of Mixed_Value ?
I have tried various variations of substr(Mixed_value), with no success.