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     UPPERCASE data with a lower case query

Read-Only Read-Only Topic
Go
Search
Notify
Tools
UPPERCASE data with a lower case query
 Login/Join
 
Platinum Member
posted
I have a MRE user who would like to build a report from a database where all the data is stored in UPPERCASE. He would like the users to be able to use lowercase for the 'contains' when making the query.

Can this be done?

Thanks


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Master
posted Hide Post
Try this,

TABLE FILE CAR
PRINT *
WHERE LOCASE(10,BODYTYPE,'A10') CONTAINS 'con'
END
-EXIT


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Platinum Member
posted Hide Post
Thanks Kamesh.

I passed this to my MRE user. I will let you know how it goes.

Greg


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Member
posted Hide Post
Conversely, you can UPCASE the string used for the search. Works great when the reports can vary.

-DEFAULTS &WHAT = 'con'

-SET &LEN = 'A' | &WHAT.LENGTH;
-SET &WHAT = UPCASE(10,'&WHAT.EVAL','&LEN.EVAL');
TABLE FILE CAR
PRINT *
WHERE BODYTYPE CONTAINS '&WHAT'
END

Here, the string value is defaulted to 'con' (which is usually over-ridden by the users resonse). BTW, ALWAYS use '.EVAL' when using a User-written subroutine, at least that's been my experience.

Craig


PROD:WebFOCUS 7.6.11 on UNIX accessing FOCUS, Oracle, SQLServer
TEST: WebFOCUS 7.7.1 on UNIX accessing FOCUS, Oracle, SQLServer
 
Posts: 28 | Location: USA | Registered: March 24, 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     UPPERCASE data with a lower case query

Copyright © 1996-2020 Information Builders