Equivalent Decimal Datatype

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
Raamc
Premium Member
Premium Member
Posts: 87
Joined: Mon Aug 20, 2007 9:08 am

Equivalent Decimal Datatype

Post by Raamc »

Hi,

What is the equivalent datatype in Datastage for S9(14).99.
It is a decimal field but i have ambiguity over the length?Is it Decimal[16,2] Or Decimal[15,2].

Thanks in Advance

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

Post by ray.wurlod »

9(14) indicates 14 digits to the left of the decimal place, and V99 indicates two digits to the right. Therefore there is a total of 16 significant digits, from which you can deduce that the equivalent data type is Decimal(16,2), because precision is the total number of significant digits.
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