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.
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 jw777This message has been edited. Last edited by: Kerry,
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
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.