precision of double fields

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
jasper
Participant
Posts: 111
Joined: Mon May 06, 2002 1:25 am
Location: Belgium

precision of double fields

Post by jasper »

Hi,
I'm working on data from multiple sources.(oracle/csv,..). I do some aggregations/transforms and load into an oracle db.
In the DB one of the fields is defined as number(14,6). Throughout the DS-job the data for this field is always a double, without any further specifiactions. This seems to round at 4 decimals.

Is there some kind of parameter we can use to make this 6? Or do I need to change to something else then double?
thompsonp
Premium Member
Premium Member
Posts: 205
Joined: Tue Mar 01, 2005 8:41 am

Post by thompsonp »

You could use a decimal(14,6).

When you do aggregations yo can specify the output as decimal otherwise it defaults to a double.
Post Reply