Convert Decimal to Varchar

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
chilli
Participant
Posts: 2
Joined: Mon Sep 24, 2007 7:56 am

Convert Decimal to Varchar

Post by chilli »

Hi All,

Here i am getting values (Ex: -00005 Or 00009) from source as Decimal (5). If it is -00005 then out put should be 0000A and if it is 00009 then 0000X.

Can any body explain me how to do this...Thanks


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

Re: Convert Decimal to Varchar

Post by ray.wurlod »

chilli wrote:If it is -00005 then out put should be 0000A
Why?
chilli also wrote:and if it is 00009 then 0000X.
Why?
What other possibilities exist?
Please fully document the transformation rule.
Note also that your target data type can not be 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