Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Soundex - phonetic first name

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Soundex - phonetic first name
 Login/Join
 
Member
posted
DEFINE FILE FMT_MASTERPRTY
PH_LN/A6=SOUNDEX('9', LNAME, PH_LN);
PH_FN/A6=SOUNDEX('20', FNAME, PH_LN);
END
-*
TABLE FILE FMT_MASTERPRTY
PRINT
LAST
FIRST
BY PH_LNAME
BY PH_FNAME
BY DATEOFBIRTH
WHERE RECORDLIMIT EQ 500
END


OUTPUT

PH_LNAME PH_FNAME LAST FIRST DATEOFBIRTH
A450 A211 ALLEN ASIA
A450 A231 ALLEN ASIA


A426 M612 ALGARIN MARIA
A426 M625 ALGARIN MARIA


A000 R163 AYO ROBERT
A000 R163 AYO ROBERT


I was sorting by phonetic last and first name. Can someone explain why would the PH_FNAME is different when the first name are identical. Then sometimes the PHON_FNAME is the same. This is the first time that I am trying to use SOUNDEX, so maybe I don't have a full understanding of it. Please help.

Thanks
jw777

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 9 | Registered: January 21, 2011Report This Post
Guru
posted Hide Post
I would verify the field sizes and positions in the master for both the last and first names.

HTH


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
Virtuoso
posted Hide Post
At some point between WF4.3 and WF7.1, the SOUNDEX routine changed.

In 4.3 I succesfully used SOUNDEX, never an issue.

In 7.1 onwards I have seen exactly this behaviour. Total lack of consistency.

Maybe open a case on it, as I used different methods as a WAR.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Expert
posted Hide Post
PH_LN/A6=SOUNDEX('9', LNAME, PH_LN);
PH_FN/A6=SOUNDEX('20', FNAME, PH_LN);


I noticed you sometimes get different values depending on the input string length specified in the function call, I'd make sure they're the length of the string - is LNAME really 9 characters long?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Thanks, I checked my master file and I realized the length of the strings were wrong. The last name should be '20' and the first name should be '9'. Now the output makes sense.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 9 | Registered: January 21, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Soundex - phonetic first name

Copyright © 1996-2020 Information Builders