Can we use regular expression in DataStage job??

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
sandeep8.s
Participant
Posts: 3
Joined: Mon Oct 13, 2008 1:49 am

Can we use regular expression in DataStage job??

Post by sandeep8.s »

Hi
I have to match some text pattern in a data. Is it possible to use regular expression in Data Stage parallel job?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

No in the job, but you can always shell out to the OS and use regular expressions and functions there.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Filter stage has limited regexp capability.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jhmckeever
Premium Member
Premium Member
Posts: 301
Joined: Thu Jul 14, 2005 10:27 am
Location: Melbourne, Australia
Contact:

Post by jhmckeever »

You could add your own regular expression support using the C-source I posted <b><a href="viewtopic.php?t=107882">Here</a></b>.

(Although I'm beginning to wonder why I bothered, as nobody seems to like using <b><a href="search.php">Search </a></b> much these days)

J.
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

Ray can you please give an example here? thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The WHERE clause can use the LIKE operator followed by a regular expression. This is documented early in the chapter on the Filter stage in the Parallel Job Developers Guide manual.
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