Numeric conversion

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
marco.mir
Participant
Posts: 16
Joined: Wed Jul 28, 2010 1:30 am
Location: Italy

Numeric conversion

Post by marco.mir »

Hello,

sorry for the question which could be stupid for someone, but how can I convert a Numeric (length 6, scale 3) to a Decimal (length 3, scale 3)?

Thanks in advance.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can use DecimalToDecimal() function. But beware that you are potentially trying to load large values into a data type that is not big enough to store them, so DataStage will unavoidably generate an alert message to this effect. (Tou can, of course, use a message handler to demote his alert to informational.)
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