Float to Float or Float to Integer

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
imfarhan
Participant
Posts: 53
Joined: Tue Jul 24, 2012 9:34 am

Float to Float or Float to Integer

Post by imfarhan »

Dear All,
I simply use

ODBCConnector --> Transform --> DS

One of the field from source table has got type FLOAT
I keep my target table or DS as similar to srouce but i'm getting the error

SoureTbl.Field1 = float
TargetTbl.Field1 = float

Code: Select all

When reading database column INT32 into column SFLOAT, truncation, loss of precision or data corruption can occur. (CC_DBSchemaRules::reportSizeMismatch, file CC_DBSchemaRules.cpp, line 1,692)
I've also tried to use the function on stage-variable like DFloatToDecimal by changing the type on target but got different error. but I think it should be straight forware , when I take off this field but jobs run ok.

Appreciate your help!
Regards
Farhan
Farhan Syed
imfarhan
Participant
Posts: 53
Joined: Tue Jul 24, 2012 9:34 am

Re: Float to Float or Float to Integer

Post by imfarhan »

Done!

Weired as I said earlier the source was 'Float' and I keep the Target table|field siilar to 'Float' it generate error.

Then I change to 'double' both side source and target , ODBC_tbl and DB2|UDB respectively it works fine

Thanks to all!

Regards
Farhan
Farhan Syed
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Glad we could help! :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply