replace

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
fmartinsferreira
Participant
Posts: 142
Joined: Wed Mar 24, 2004 10:51 am
Location: Brazil

replace

Post by fmartinsferreira »

Hi everybody!

My input is "0.678" and I need the following output "0,678".

Does anybody know how can I do this in the transformer?

Regards,

Fernando
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Check the EReplace or Convert functions in your 'online' help.
-craig

"You can never have too many knives" -- Logan Nine Fingers
fmartinsferreira
Participant
Posts: 142
Joined: Wed Mar 24, 2004 10:51 am
Location: Brazil

Post by fmartinsferreira »

I solved using change function

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:lol: Or 'change'... more than one way to skin the cat.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Convert() is more efficient than either Ereplace() or Change().

If you had NLS enabled, then the regional settings (locale) would have automatically managed the decimal place character.

You could also have used Fmt() with a literal replacement for the decimal place character.

Do you also need a non-US thousands delimiter character?
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