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     [SOLVED] Baffled by embedded quotes

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Baffled by embedded quotes
 Login/Join
 
Master
posted
Sorry to bring this up yet again but here it is:
-SET &COMPANY='CALIDAD';

-SET &CHOICE=IF '&COMPANY' EQ 'CALIDAD' THEN 
-	''WHERE COMPANY EQ ''01'' OR ''07'' ''  ELSE 'WRONG';

Of course I have other options instead of 'WRONG' - that's just there to try and isolate the problem.

I have a database that contains tables for a variety of companies. In some cases I want to combine those companies using a where clause. The company number is an alpha field in the database.

I've messed around with any number of quote marks fore and aft and in the middle of the string, but I still get:

IF..THEN..ELSE SYNTAX ERROR

Suggestions?

This message has been edited. Last edited by: George Patton,


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Expert
posted Hide Post
Working late on a Sunday?

Try:

-SET &COMPANY='CALIDAD';

-SET &CHOICE=IF &COMPANY EQ 'CALIDAD' THEN 
-	'WHERE COMPANY EQ ''01'' OR ''07'' '  ELSE 'WRONG';

-TYPE &CHOICE

You need an additional single-quote only where the single-quote is required in the output.


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
Master
posted Hide Post
Yes, I was working on a Sunday, which isn't itself unusual. One of the benefits of my position (it certainly ain't the money) is that I get to make my own hours. But sometimes, as in this case, working instead of resting only serves to induce brain flatulence - as your simple answer to my stupid question only goes to prove.

(Yesterday I spent 6 hours finding the owner of a stray cat that was trying to get itself killed crossing the main drag here in Guelph. After tracking her down through facebook and several other channels, her reaction was only "OK, thanks"... So that put me in a p(r)issy mood and probably impaired what few brain cells I have remaining for the rest of the day ... )


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Expert
posted Hide Post
It's nice that you rescued the cat...


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
Good One




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
Master
posted Hide Post
Yeah, I rescued the cat instead of flying my plane down to Kingston and back - which had been my plan for the morning ....


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report 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     [SOLVED] Baffled by embedded quotes

Copyright © 1996-2020 Information Builders