Page 1 of 1

Non-Alpha numeric characters

Posted: Fri Aug 13, 2010 9:25 am
by reachmexyz
hello all

In my feed, i get Non-alpha Numeric characters like ?,<> and also Html encode characters like $#284, $#123, \x67 and so on. Now i need to replace some of the characters will null and some with hyphes. using PXReplace i can only replace one string But in this case i need to replace multiple strings. how can i do it. Please reply

Posted: Fri Aug 13, 2010 9:46 am
by anbu
If you want to do character by character replacement then use Convert()

Posted: Fri Aug 13, 2010 11:25 am
by reachmexyz
anbu wrote:If you want to do character by character replacement then use Convert()
i want to do string by string. Cant i do this in Datastage.

Posted: Fri Aug 13, 2010 12:40 pm
by anbu
You have to call PXReplace() multiple times

Posted: Fri Aug 13, 2010 1:44 pm
by arunkumarmm
Yes, I was even searching for it and found that there is no equivalent function in PX for server 'ereplace' :(

But I believe ereplace will work in BASIC_Transformer.

Posted: Fri Aug 13, 2010 2:04 pm
by anbu
Search the forum for C++ EReplace() function. This can be used in PX.

Posted: Sun Aug 15, 2010 3:10 am
by ray.wurlod
Adapt the parallel Ereplace() function to handle multiple strings. Or create a "wrapper" routine to feed one string at a time to that Ereplace() function.