scenario

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
Devendrudu
Participant
Posts: 31
Joined: Tue May 24, 2011 12:16 am

scenario

Post by Devendrudu »

Hi Datastage team,

i have one field contain the varchar data type(but contain integer value)

i want output value should be starts with zero then numbers.

example:

input:

2347689

output:
02347689

how can i pass the zero value in front of the integer value. or

how to convert this. please let me know.
Devendra,Bangalore,India
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

Post by dspxlearn »

'0':<InputColumn>

But, need to take care of the total length and the datatype of the output column to which you are going to map this.
Thanks and Regards!!
dspxlearn
suse_dk
Participant
Posts: 93
Joined: Thu Aug 11, 2011 6:18 am
Location: Denmark

Post by suse_dk »

you can use the Padstring function on your string. It enables you to define a optional pad character and lenght
_________________
- Susanne
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DO try to think up meaningful subjects.
:roll:
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