Page 1 of 1

Decimal operator error

Posted: Tue Oct 19, 2010 5:24 am
by ketanshah123
Hi

I am facing following error

APT_Decimal::operator=: the source decimal has even precision, but non-zero in the leading nybble, or is too large for the destination decimal.


source destination field are of length 5 with scale 2 and destination are files where field are of length 7 and scale and 1 file has field of length 5 with scale 2

for one field I am doing some calculation and its going in destination field

let me know how can I resolve this issue ?

Thanx in advance

Posted: Tue Oct 19, 2010 7:36 am
by chulett
First question - did you search for your message? An exact search here for "the source decimal has even precision, but non-zero in the leading nybble" turned up 14 matches, several of which were marked as resolved.

Posted: Thu Oct 21, 2010 4:46 pm
by abc123
Also, please try to re-state your question. Do you have one or more fields in the source file which are Decimal(5,2) and going to Decimal(7,1)?

Please make it clear.