Hello
After browsing the internet, no results I found so here I am.
I have a database with a CHAR column/field. In that column I have very varied data, numeric and char values, but in some records I also have packed numeric values (in a CHAR field). This is the example of the first column of the image.
I need to convert that numeric packed value from that CHAR field into a real numeric data field, in my RPG pgm (SQL can be used). The original information cames from a TXT file that is uploaded into the DB.
(I cannot change the database column data type).
In the example, the second column is the real numeric value of the first column, I need to get to that value in the RPG to be able to write it in another DB.
Thanks in advance!
After browsing the internet, no results I found so here I am.
I have a database with a CHAR column/field. In that column I have very varied data, numeric and char values, but in some records I also have packed numeric values (in a CHAR field). This is the example of the first column of the image.
I need to convert that numeric packed value from that CHAR field into a real numeric data field, in my RPG pgm (SQL can be used). The original information cames from a TXT file that is uploaded into the DB.
(I cannot change the database column data type).
In the example, the second column is the real numeric value of the first column, I need to get to that value in the RPG to be able to write it in another DB.
Thanks in advance!
Comment