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     Converting input variable to upper case?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Converting input variable to upper case?
 Login/Join
 
Platinum Member
posted
Hi all,

This should hopefully be a real easy one, but at the moment I don’t know how to do it.

We receive report selection criteria into our reports from htm screens. When the user inputs characters as lower case the report does not find the data as everything in our database is in upper case.

I have found the UPCASE command, but this is for converting database data to upper. I need covert a program variable to upper, before querying the database with it.

Thanks

Mark.


WebFocus 765. iSeries v5r4
 
Posts: 175 | Location: England | Registered: April 11, 2006Report This Post
Virtuoso
posted Hide Post
You can use UPCASE for what you need to do:


-SET &INPUTVAR = UPCASE(&INPUTVAR.LENGTH,&INPUTVAR,'A&INPUTVAR.LENGTH');


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Platinum Member
posted Hide Post
Perfect! Thanks Mickey Smiler

I didn't realise the .LENGTH function was available.


WebFocus 765. iSeries v5r4
 
Posts: 175 | Location: England | Registered: April 11, 2006Report This Post
Master
posted Hide Post
Another option is to use javascript and convert it to upper case. This way the user will realize that it should be upper case.

Scott




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
with one wee caveat

-SET &MYNAME = 'SUSANNAH   ';
-*this gives you 11
-TYPE &MYNAME.LENGTH
-*but this gives you 8
-SET &ALEN = ARGLEN( &MYNAME.LENGTH , &MYNAME , 'I2');
-TYPE &ALEN

ARGLEN is a tighter function, and will measure without the trailing spaces.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     Converting input variable to upper case?

Copyright © 1996-2020 Information Builders