DECIMAL TO STRING

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
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

DECIMAL TO STRING

Post by deesh »

Hi Friends

When I have generating the values from DECIMAL TO STRING Its not giving the exact rsults Can some one help me.

condition:

DecimaltoString(column name)

results :: 09400077.
09400259.
09400417.
09400634. at the end giving dot( . ) I dont need that dot and moreover the decimal size is 8 and string size is 16 .
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The dot is correct. This indicates that it's a decimal. If you don't want the dot, explicitly trim it off. What do you want to do with the additional eight character positions? Whatever it is, you have to specify it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sounds like you don't actually have decimal values you're working with.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply