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     String Search Table and Identify Field Name [SOLVED]

Read-Only Read-Only Topic
Go
Search
Notify
Tools
String Search Table and Identify Field Name [SOLVED]
 Login/Join
 
Platinum Member
posted
I am wondering if there is a way to search for a string within a given table and if the string is found, identify the name of the field the string was located in?

To clarify, I'm not talking about searching for a field name. Here is an example:

Search for value ='Doug' and 'Doug' was found in field ='FIRST_NAME', so the function would return back 'FIRST_NAME'



In my case there is no chance that the string would be located in more than one field.

Thanks in advance for your help!

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


WebFOCUS 8
Windows, All Outputs
 
Posts: 111 | Registered: July 23, 2015Report This Post
Virtuoso
posted Hide Post
You might want to look into the Magnify feature of WebFOCUS.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Gold member
posted Hide Post
Well, I could think of a few ways to do this in WebFOCUS. The simplest - brute force - way would be to TABLEF and SAVE the data, then create a MASTER with a single field - say, OLINE, OLINE, A2000, A2000 - for the SAVE data, and TABLE on OLINE with a CONTAINS on your string.

Slightly less brute force would be to create a DEFINE of all ALPHA fields in the master, and then search for your string in that DEFINE.

Of course, best approach depends on number of columns being searched, volumes of data, and other factors not described in the original post. Still, I think you could solve this problem without a Magnify license. Just some thoughts.


WebFOCUS 8
Windows, All Outputs
 
Posts: 71 | Registered: May 29, 2015Report This Post
Platinum Member
posted Hide Post
I figured out a solution that worked.

I was probably not very clear in that I am not searching amongst the field names themselves, but rather searching the data of the table and reporting back on the field that contained the matching string.


WebFOCUS 8
Windows, All Outputs
 
Posts: 111 | Registered: July 23, 2015Report 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     String Search Table and Identify Field Name [SOLVED]

Copyright © 1996-2020 Information Builders