hi,
I have MQSI v2.0.1 on WIN NT.
I am getting values from database n populating xml template.i have a field which is of DOUBLE data type in database(DB2).this value is being retreived into XML file which looks like,
<Test><Datax>1.05E+3</Datax></Test>
i am trying to type cast this to decimal equivalent(1050) with the following ESQL script :
CAST((CAST(InputBody.Test.Datax AS FLOAT)) AS DECIMAL)
It worked most times but failed few a times giving the following error in the event viewer:
" Error casting character string '1.05' to decimal; maximum decimal precision is 31 digits.
Error casting a value from FLOAT to DECIMAL.An error occurred when casting a value of data type FLOAT to a value of data type DECIMAL."
I have even tried casting it directly to DECIMAL with ESQL
CAST(InputBody.Test.Datax AS DECIMAL)
which has also failed.
Could anybody there help please!
regards,
crony
[ This Message was edited by: cronydude on 2002-01-24 06:59 ]
[ This Message was edited by: cronydude on 2002-01-24 07:13 ]
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum