Decimal_From_Decimal Warning Issue

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
senthilt1
Participant
Posts: 134
Joined: Mon Nov 19, 2007 2:17 am

Decimal_From_Decimal Warning Issue

Post by senthilt1 »

Hi All,

I am extracting the data from Oracle and loading into Teradata Database. In oracle I have the datatype as decimal(38,10) but in Teradata it is decimal(9,4) only as confirmed by DBA and they recommend to Round off the decimal points in TD.

I am using the DecimalfromDecimal with round_inf option, But I am getting the warning message as below

APT_combinedOperatorController,1: Conversion Error calling conversion routine decimal_from_decimal data may have been lost.

How to eliminate this warning, is there any way?

Please Suggest. Highly appreciate your help.

Thanks
rkashyap
Premium Member
Premium Member
Posts: 532
Joined: Fri Dec 02, 2011 12:02 pm
Location: Richmond VA

Post by rkashyap »

The warning that system is giving is valid. If you are confident that data will fit into smaller target field, then you can suppress warning by using Modify stage for type conversion with an additional specification 'NOWARN'.

Code: Select all

Specification=OUTNUM:Decimal[9,4]=decimal_from_decimal(INNUM)
Specification=NOWARN
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Interesting. That or go all Old School on it and just demote the thing. :wink:
-craig

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