using regular expression in a trim function..possible?

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
suneyes
Participant
Posts: 82
Joined: Mon Jul 21, 2008 8:42 am

using regular expression in a trim function..possible?

Post by suneyes »

Hi,
Can I use a regular expression stating the trimming criteria inTRIM function.

I have a requirement to trim the non numerals values of acolumn in a transformer stage.
can any one provide some inputs for my problem??
sun
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is no capacity to use regular expressions in a trim function. You could create a stage variable containing all the non-numeric characters, and use Convert() to remove these from the input column.
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