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     [CLOSED] Case sensitive search-db issue

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Case sensitive search-db issue
 Login/Join
 
Member
posted
It's been quite some time since I have been working regularly in WebFOCUS and I have come across an issue I just cannot solve:

Our database contains mixed characters. I am building a report to search on some alphanumeric fields. I just cannot, for the life of me, figure out how to make the searches not be case sensitive.

My idea was to define a field (A concat field of several fields which use letters and numbers) using UPCASE and then convert what the user inputs to uppercase as well.

1. The UPCASE is not even working. Is this because there are numbers in the data as well?

2. Am I even going about solving the case sensitive issue the right way with the conversions?

In sum, how can I retrieve data when a user enters 'widget' in the search but the database contains 'Widget'?

Thank you.

This message has been edited. Last edited by: Kerry,
 
Posts: 23 | Location: ABQ, NM | Registered: August 24, 2009Report This Post
Expert
posted Hide Post
Here's 1 example, LOCASE could be another, other's may have different examples:

 
-SET &ECHO=ALL;
-SET &VALUE1   = 'widget';
-SET &VALUE2   = '999widget999';
-SET &VAL_LEN1 = &VALUE1.LENGTH;
-SET &VAL_LEN2 = &VALUE2.LENGTH;
-SET &FMT1     = 'A' | &VAL_LEN1;
-SET &FMT2     = 'A' | &VAL_LEN2;
DEFINE FILE CAR
  NEW_COL01/&FMT1 WITH CAR = 'Widget';
  NEW_COL02/&FMT1 = '&VALUE1.EVAL';
  NEW_COL03/&FMT1 = UPCASE(&VAL_LEN1,NEW_COL01,'A&VAL_LEN1');
  NEW_COL04/&FMT1 = UPCASE(&VAL_LEN1.EVAL, '&VALUE1.EVAL', 'A&VAL_LEN1');
  NEW_COL05/&FMT2 WITH CAR = '999widget999';
  NEW_COL06/&FMT2 = '&VALUE2.EVAL';
  NEW_COL07/&FMT2 = UPCASE(&VAL_LEN2,NEW_COL06,'A&VAL_LEN2');
  NEW_COL08/&FMT2 = UPCASE(&VAL_LEN2.EVAL, '&VALUE2.EVAL', 'A&VAL_LEN2');
END
TABLE FILE CAR
SUM
   NEW_COL01
   NEW_COL02
   NEW_COL03
   NEW_COL04
   NEW_COL05
   NEW_COL06
   NEW_COL07
   NEW_COL08
     COMPUTE FLAG1/A1 = IF COUNTRY   EQ 'ENGLAND' THEN 'N' ELSE 
	               IF NEW_COL03 EQ NEW_COL04 THEN 'Y' ELSE 'N';
     COMPUTE FLAG2/A1 = IF COUNTRY   EQ 'JAPAN'   THEN 'N' ELSE
	               IF NEW_COL07 EQ NEW_COL08 THEN 'Y' ELSE 'N';
  BY COUNTRY
END
-EXIT

This message has been edited. Last edited by: Tom Flynn,


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report 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     [CLOSED] Case sensitive search-db issue

Copyright © 1996-2020 Information Builders