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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Case Sensitive
 Login/Join
 
Silver Member
posted
HELLO,

Is there any SET COMMAND which will ignore case?
I have data with lower and upper case in a database and my where command is not working.

Thanks,
SG


Webfocus 7.6.8
PDF,HTML & EXCEL
 
Posts: 32 | Location: memphis,tn | Registered: January 25, 2007Report This Post
Virtuoso
posted Hide Post
What I would do is use the function UPCASE

you ask for the string to select

-DEFAULT &ASKEDFOR='selected';
and convert it to uppercase.

-SET UPINPUT = UPCASE(4, '&ASKEDFOR.EVAL');

Then in the define you do the same with the field from the database

DEFINE FILE XXX
UPSTRING/A4=UPCASE(4,MIXEDSTRING,UPSTRING);
END

In the where statement you compare the field form the database with the amper value

...
WHERE UPSTRING EQ UPINPUT;
...




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Silver Member
posted Hide Post
FrankDutch,

Thanks for the information but I was wondering if there is any SET command that will ignore the case. I have several where statements and several fex files that needs to be fixed.

Thanks,
SG


Webfocus 7.6.8
PDF,HTML & EXCEL
 
Posts: 32 | Location: memphis,tn | Registered: January 25, 2007Report This Post
Expert
posted Hide Post
SG,

WHat is your data repository? It might be possible within that (e.g. MS SQL).

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
There is no WebFOCUS command for this. Some dbms have the capability. I think you should search for "ignore case" on the web for your dbms.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Unfortunately, I believe the column's indexes will not be used when selecting using the defined field - as well, this probably won't be passed to the dbms.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
Hi SG,

The place where case sensitivity should be handled is in the DBMS. WebFOCUS isn't really doing the selection but your DBMS does.

In some cases this is a setting on your database, also using LIKE can help in some cases. But it depends mostley on your DBMS.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Silver Member
posted Hide Post
Tony A
we are using Progress(9.1D) Database.

Tom Flynn
Thanks for the suggestion but I don't want to use Define as you have already mentioned refreshing metadata can cause lot of problems.

Francis and Frans:
Thanks and I will look into it.

SG


Webfocus 7.6.8
PDF,HTML & EXCEL
 
Posts: 32 | Location: memphis,tn | Registered: January 25, 2007Report This Post
Virtuoso
posted Hide Post
SG

Although you do not want it, my solution is the only that works.
If you only do a define then the output is uppercase, but the user can still put in a lower or mixed case selection, so the result won't be what you want, unless you instruct the users to only key in uppercase characters.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders