Escape Characters in External Filter ( Pain!)

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
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Escape Characters in External Filter ( Pain!)

Post by rameshrr3 »

FYI

IDK why , but our AIX doesn't like quoted arguments to Grep and getting the sam eto work in External filter was quite a pain requiring blunt trial and error till we could force it to recognize :

I have a requirement to only pass values that match '9' but not any other number preceeding '9', fortunately we are not in the 90 range yet
Finally managed to get it work
To Escape Grep reserved characters in REGEXP via EXF stage , use \\
Eg :
in Aix
grep -v [0-9][9]
In Ex filter
grep -v \\[0-9\\]\\[9\\]

What a Pain :) !
Post Reply