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] Split Name Question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Split Name Question
 Login/Join
 
<d3nis370>
posted
I have a column called name it gives the last name space first name. All I want to display is the last name. How do I do this?

This message has been edited. Last edited by: <d3nis370>,
 
Report This Post
Virtuoso
posted Hide Post
You could "tokenize" the string by the 'space' character and then use the first token which should correspond to the last name.

Search this forum or the documentation for the GETTOK function.

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



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
Now, parsing strings and using tokens is usually a tricky business when you have data "exceptions". For example:

1. SMITH JOHN would work nicely as the first token gives you SMITH which is the correct last name.
2. However VAN BUREN MARTIN may pose a problem as the first token would give you VAN when one would expect VAN BUREN as the last name.
3. How about DE LA RENTA OSCAR? In this case you'll need the first 3 tokens to make up the last name Frowner

Anyway, as you are the one who knows your data layout you'll have to find ways to approach those exceptions as you encounter them.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
<d3nis370>
posted
GETTOK Worked thanks and thankfully we do not put spaces between last names like DE LA RENTA its all together so GETTOK works thanks for yalls help
 
Report This Post
Virtuoso
posted Hide Post
You're welcome! I'm glad it helped.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report 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] Split Name Question

Copyright © 1996-2020 Information Builders