I am building a Native Stored Procedure.. where one of the field is derived by combining(concatenating) 5 values. 3 out of these 5 values are character fields and 2 are packed-decimal. I need to combine them into 1 field before I write into the table.
I am not sure on how can I convert any number to packed decimal (COMP-3 equivalent of COBOL) in a SP.
I tried DEC() function but its not giving expected results.
I'm using DB2 V11
Please let me know if there are any other methods..
Thanks..