How to Replace one or more instances of a substring

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
Apotluri
Premium Member
Premium Member
Posts: 25
Joined: Sun Dec 25, 2005 10:38 pm

How to Replace one or more instances of a substring

Post by Apotluri »

Hi all, I have a CHAR(10) field with a value of 123-456789 and I have to map this to an output field of CHAR(9) without the '-', meaning populate the outpur field with 123456789. In server, we can do it using Change or Ereplace, but how to get this done in Parallel.

Help is appreciated.
Now, am I going to get few replies as "did u search", I truly did , but did not find the answer, I found a few discussions though.

Thanks, as always.
mikegohl
Premium Member
Premium Member
Posts: 97
Joined: Fri Jun 13, 2003 12:50 pm
Location: Chicago
Contact:

Post by mikegohl »

The convert functions should work for that.
Michael Gohl
Apotluri
Premium Member
Premium Member
Posts: 25
Joined: Sun Dec 25, 2005 10:38 pm

Post by Apotluri »

Isn't Convert, a server function?

Can you give me the usage please, if it is parallel.
Apotluri
Premium Member
Premium Member
Posts: 25
Joined: Sun Dec 25, 2005 10:38 pm

Post by Apotluri »

sorry, I got it.!
Post Reply