Getting warning when doing calculations in OCI stage

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
parag.s.27
Participant
Posts: 221
Joined: Fri Feb 17, 2006 3:38 am
Location: India
Contact:

Getting warning when doing calculations in OCI stage

Post by parag.s.27 »

I am using the OCI stage as aninput source for one of my job.

I have to do a calculation on two date fields and take the difference of dates in years. Finally I have to apply a floor function on it. So the final code in query is : -

Code: Select all

FLOOR((MONTHS_BETWEEN(QED.QUOTE_DATE, IP.BIRTH_DATE)/12)) AS "CUST_QUOTE_AGE_DATE"
.

I have defined this column in the OCI stage as Decimal(38,10) but it is giving me a warning as

Code: Select all

Oracle_Enterprise_0: Column CUST_QUOTE_AGE_DATE floating point decimal is not fully supported; adjusting the scale.
I also tried defining the column in OCI stage as Decimal(38) only. But still I am getting this warning.

Can someone please suggest, what datatype should I define for it and what should be its precision and scale
Thanks & Regards
Parag Saundattikar
Certified for Infosphere DataStage v8.0
iDomz
Participant
Posts: 81
Joined: Wed Jul 25, 2007 5:25 am
Location: London

Post by iDomz »

floor returns integer as far as I know.
parag.s.27
Participant
Posts: 221
Joined: Fri Feb 17, 2006 3:38 am
Location: India
Contact:

Post by parag.s.27 »

iDomz wrote:floor returns integer as far as I know.
If that is so, then it should not give warnings while I am reading it as a Decimal type.

But its giving me that warning
Thanks & Regards
Parag Saundattikar
Certified for Infosphere DataStage v8.0
Post Reply