Hi all,
I need DB2 query to convert Packed decimal to signed decimal value.
For example,
Packed decimal --> +999999999999999999.99
I tried this below query, but i can only see -ve sign and for +ve sign it is coming as space. I need +ve sign also in the output file.
SELECT CHAR(CAST(AMOUNT_A AS DECIMAL(18,2)))
Output that i got for thes query :
Packed decimal --> 999999999999999999.99 (if the value is +ve)
Packed decimal --> -999999999999999999.99(if the value is -ve)
But i need output in below format,
Packed decimal --> +999999999999999999.99 (if the value is +ve)
Packed decimal --> -999999999999999999.99(if the value is -ve)
Thanks & regards,
VishnuSrinivasan.M
emai: vishnusrini@gmail.com