Conversion

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
dodda
Premium Member
Premium Member
Posts: 244
Joined: Tue May 29, 2007 11:31 am

Conversion

Post by dodda »

Hello

I have a column QT defined as varchar data type.
QT will be having values like

QT
12
124
89765
3456
......
QT could be of any length up to varchar(6).I need to map QT to QAT.
QAT should look like
QAT
000012
000124
089765
003456

QAT should be of 6 character length with zeros infront.

Any ideas will be appreciated.

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

Post by ray.wurlod »

Code: Select all

Right("000000" : InLink.QT, 6)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dodda
Premium Member
Premium Member
Posts: 244
Joined: Tue May 29, 2007 11:31 am

Post by dodda »

thanks ray that solved my problem
Post Reply