Function Like and Soundex

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
Javieregh
Participant
Posts: 25
Joined: Mon Apr 16, 2007 10:35 am
Location: JavierGH

Function Like and Soundex

Post by Javieregh »

Hi All,

I need any functions or suggestions to implement the LIKE and SOUNDEX operator in datastage.

Eg:- table.column like '%XXXX%'

and also the function

Eg. Upercase(Soundex(Trim Leading Trailing(table.column)))

I am converting some sql scripts to datastage jobs,the issue is I have to implement the LIKE part also in datastage because the source is a file.

Any inputs most appreciated.

Regards,
Xavi
Consultant in DTS
HariK
Participant
Posts: 68
Joined: Thu May 17, 2007 1:50 am

Re: Function Like and Soundex

Post by HariK »

Javieregh wrote:Eg:- table.column like '%XXXX%'
index function in transformer stage.
Or
Filter stage supports Like
Javieregh
Participant
Posts: 25
Joined: Mon Apr 16, 2007 10:35 am
Location: JavierGH

Re: Function Like and Soundex

Post by Javieregh »

index(table.column,'XXX',0) Is this syntax ???

Thanks
Consultant in DTS
HariK
Participant
Posts: 68
Joined: Thu May 17, 2007 1:50 am

Re: Function Like and Soundex

Post by HariK »

Javieregh wrote:index(table.column,'XXX',0) Is this syntax ???

Thanks
index(table.column,'XXX',1)
Javieregh
Participant
Posts: 25
Joined: Mon Apr 16, 2007 10:35 am
Location: JavierGH

Post by Javieregh »

and Soundex function ??
Consultant in DTS
HariK
Participant
Posts: 68
Joined: Thu May 17, 2007 1:50 am

Post by HariK »

Javieregh wrote:and Soundex function ??
There is soundex function, but it does not behave same as the SQL funtion. search Soundex on help available on Datastage Designer
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

HariK wrote:... but it does not behave same as the SQL funtion...
Are you sure?
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 »

Soundex is Soundex and really should behave identically across platforms. Have you found that not to be the case? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
HariK
Participant
Posts: 68
Joined: Thu May 17, 2007 1:50 am

Post by HariK »

chulett wrote:Soundex is Soundex and really should behave identically across platforms. Have you found that not to be the case? :?
My Bad. The function is based on the standard, open algorithm for SOUNDEX evaluation
Post Reply