Data Format

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
dsconultant
Participant
Posts: 10
Joined: Sat Dec 05, 2009 2:05 pm

Data Format

Post by dsconultant »

Hi,
I have a text file as output. The data looks like this

60 AA 1234 95

It should look like

60 AA 1234 0000095

I specified the last column as integer and I can get the output as 0000095 but there is an extra dot(.) at the end. I cannot convert it into character because the zeros will be removed and it will be only 95. How can I remove the . at the end and still have my data padded by 0?

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

Post by ray.wurlod »

You need to specify the data type as string if you want leading zeroes and no decimal placeholder.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

... and then pad it yourself.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply