Difference between two numbers
Posted: Fri Nov 17, 2006 8:43 pm
Hi
I am trying to substract two entries as follows:
Field1 Field2 difference(Field1-Field2)
3458.90 3458.90
45621.12 -45621.12
When I was trying to do Field1- field2, the datastage is giving an phantom error "Datatype is not proper". I am having all three as numeric datatype.
Even I tried Iconv and Oconv using MD..But when field1 is present and filed2 is empty, there is no result. But if field2 has "0" present in it, it is giving the output.
Then I tried inserting "0's" in emtpy fields of field1 and field2. But my IF condition is npt wprking for it (If Isnull(Field1) then 0 else Field1)
How to solve this?
I am trying to substract two entries as follows:
Field1 Field2 difference(Field1-Field2)
3458.90 3458.90
45621.12 -45621.12
When I was trying to do Field1- field2, the datastage is giving an phantom error "Datatype is not proper". I am having all three as numeric datatype.
Even I tried Iconv and Oconv using MD..But when field1 is present and filed2 is empty, there is no result. But if field2 has "0" present in it, it is giving the output.
Then I tried inserting "0's" in emtpy fields of field1 and field2. But my IF condition is npt wprking for it (If Isnull(Field1) then 0 else Field1)
How to solve this?