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.
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,
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.
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.