How to get rid of zeros in the output

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
Hope
Participant
Posts: 97
Joined: Sun May 13, 2007 2:51 pm
Contact:

How to get rid of zeros in the output

Post by Hope »

I have to calculate the sum of rows in a particular column. The input column datatype is decimal.I have given the output column length as decimal(15,2).When I look at the output zeros are padded.Ex: if the sum is 879897.79 .The output is 000000000879897.79
1.how I can get of rid of zeros before the number.

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

Post by ray.wurlod »

You will find your answer by searching in the correct forum. Do an "all terms" search for View Data decimal
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