How to remove leading zeros in DataStage

Ley Gail picture Ley Gail · May 7, 2015 · Viewed 16.9k times · Source

I am trying to remove the leading zeros in the decimal field in a sequential file stage. what is the solution for this problem ?

Answer

Barak Kedem picture Barak Kedem · May 7, 2015

The easy way is with : Trim(DecimalTostring(In.Col),'0','L')