transformer - round off decimal values

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
ktv
Participant
Posts: 4
Joined: Mon Jun 30, 2008 5:10 am

transformer - round off decimal values

Post by ktv »

I have given the metadata for a numeric field as (16,0) in the transformer, for input and output links. There are two output links with the same calculation. Once the calculation is done, the value is 12250.99.
One output link goes to an Aggregator whereas the other to a Sequential File. The Seq file gets populated with the value 12251 whereas the output from the Aggregator has the value 12250.99 itself. The metadata is numeric(16,0) in all stages.

Can someone please explain ?
ktv
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard. It's all about data types. Aggregator results are always dfloat, whereas Decimal(16,0) specifies no decimal places.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply