How to convert Float 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
Mhasan
Participant
Posts: 38
Joined: Wed Apr 19, 2006 10:03 pm
Location: Bangalore

How to convert Float to Varchar

Post by Mhasan »

Hi,

Can anybody tell me how to convert float to varchar..

My input data is coming in Float datatype( sql server ) but target database oracle is it in Varchar format
Thanks
M A hasan
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Try DecimaltoString() or StringfromDecimal() or DFloattoString().
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The Float to String conversion can also be done implicitly, anytime your source is float and your target is string in a stage the engine will perform an implicit conversion for you. It is better to perform explicit conversions so that you know when and how numbers are being converted, but it isn't required. The Parallel Job Developer's Guide documents which datatype conversions can be performed implicitly.
Post Reply