replace function

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
ravi_etl
Participant
Posts: 9
Joined: Tue Jul 15, 2008 10:11 pm

replace function

Post by ravi_etl »

Hi, I have a vaue for one of the fields which is coming in as 'abcdef&ghijkl' instead of 'abcdef&ghijkl'
the problem is it is not coming at the fixed place. I need to replace that "&amp" with "&" in that string.

Please help me if anybody has idea on using a right function to resolve this kind of issue...


Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You could use the parallel Ereplace() function published on DSXchange, but what happens if other placemarkers (for example ' or €) occur?

Maybe a better approach would be to pre-parse the HTML with a parser specifically for that task (or a routine that you write, but why re-invent the wheel?).
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 »

Is this XML you are parsing? If so, it should be handling it automatically. :?
-craig

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