Decimaltostring conversion not returning any data

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
dsguy
Participant
Posts: 34
Joined: Thu Mar 09, 2006 10:37 am

Decimaltostring conversion not returning any data

Post by dsguy »

Hi

When i try to convert from decimal to string using DecimalToString function, the output for that column is returning with null.Please help me in this

I have used the following fuctions in the transformar stage for which i am getting null.

DecimalToString(Link1.CDML_AMT,"suppress_zero")
DecimalToString(Link1.CDML_AMT,"fix_zero")
DecimalToString(Link1.CDML_AMT,"fix_zero,suppress_zero")

Thanks
Nageshsunkoji
Participant
Posts: 222
Joined: Tue Aug 30, 2005 2:07 am
Location: pune
Contact:

Post by Nageshsunkoji »

Hi,

Perform This Function :

Trim(DecimalToString(Link1.CDML_AMT,"fix_zero,suppress_zero")) and make sure that your output field will be VARCHAR filed.
NageshSunkoji

If you know anything SHARE it.............
If you Don't know anything LEARN it...............
Nageshsunkoji
Participant
Posts: 222
Joined: Tue Aug 30, 2005 2:07 am
Location: pune
Contact:

Post by Nageshsunkoji »

Further to my previous post, please go through this link, it will give you more useful information about DecimalToString

viewtopic.php?t=92696&highlight=DecimalToString

and do believe in search option always. It is faster than humans.
NageshSunkoji

If you know anything SHARE it.............
If you Don't know anything LEARN it...............
dsguy
Participant
Posts: 34
Joined: Thu Mar 09, 2006 10:37 am

Post by dsguy »

Thanks a lot man
I could do get out put now..
Post Reply