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     Search for s string within a field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Search for s string within a field
 Login/Join
 
Gold member
posted
I got a varchar2(700) field that contains for example Phone Number :- 0968387262. This can be in any position within the field. What I am trying to do is look for the string Phone Number within the field and then pick the number 0968387262. Does any one have any idea on how to do this.


Webfocus 7.6.2 on Windows Enterprise 2003 Server and
Webfocus 7.6.2 on HP Unix Server
 
Posts: 74 | Location: London | Registered: January 28, 2005Report This Post
Guru
posted Hide Post
Hi Adolf,

If the string "Phone Number:-" will always precede the phone number, then you can try using STRTOKEN function using 'Phone Number:-' as the delimeter.

regards,
Anatess


WF 8.1.05 Windows
 
Posts: 333 | Location: Orlando, FL | Registered: October 17, 2006Report This Post
Virtuoso
posted Hide Post
Or you can use posit and substrg, some old mainfame code as an example. Of course assumes everything remains same length within the text field.

MCTR/I2 = IF AM128 CONTAINS 'MAJ=' THEN POSIT(AM128,60,'MAJ=',4,'I2')
MCTR/I2 = MCTR + 4;
MCTR2/I2 = MCTR + 4;
IF AM128 CONTAINS 'MAJ=' THEN SUBSTR(60,AM128,MCTR,MCTR2,4,MAJ);


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report 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     Search for s string within a field

Copyright © 1996-2020 Information Builders