DecimalToString

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
bakul
Participant
Posts: 60
Joined: Wed Nov 10, 2004 2:12 am

DecimalToString

Post by bakul »

I have an input column(BIGINT). I am using DecimalToString on this column and writing it to output (VARCHAR(20)).
However, the output field is populated with empty string. I have tried converting the input column to a decimal and then using the function but it still outputs an empty string.
The syntax I am using is DecimalToString(InputField).

We are aware that there is an issue with this function in version 7.1 and it does not give the expected result. But we are now using 7.5. Is anyone else facing this problem?
Regards,
Bakul
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

What is the value of the decimal in the source?
Try DecimalToString(InputField,'fix_zero').
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
bakul
Participant
Posts: 60
Joined: Wed Nov 10, 2004 2:12 am

Post by bakul »

The value of the input field is 5000. I have tried the function with "fix_zero". But it still does not work.
Regards,
Bakul
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

are there no warnings when you run the job? can you post the warnings
Post Reply