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     Help!! escape character for single quotes

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Help!! escape character for single quotes
 Login/Join
 
Gold member
posted
Hi,

I am facing a problem in the WHERE Clause while comparing a variable with an EQ statement to two different characters P and N.

I am pasting the code below.I want &transac to be look like -> 'P' OR 'N' <- after he interpretation of the -SET command so that the WHERE clause works fine.I tried using \[escape characted for single quotes ) by giving the below statement also -

This message has been edited. Last edited by: Aditya,
 
Posts: 84 | Registered: June 05, 2006Report This Post
Platinum Member
posted Hide Post
Hi,

Do you mean something like this :

quote:

-SET &transac = IF (&transac EQ 'Rick') THEN '('|''''|'P'|''''|','|''''|'N'|''''|')';

SELECT * FROM TXH_RPT_DETAIL WHERE RPT_SID =621;

TABLE FILE SQLOUT
PRINT *
BY SEC_CUSP_ID BY FUND_ID
WHERE FUND_CHAR IN &transac
END



P.


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

 
Posts: 206 | Registered: February 25, 2005Report This Post
Gold member
posted Hide Post
Hi,

I tried
using -SET &transac = IF (&transac EQ 'Rick') THEN '('|''''|'P'|''''|','|''''|'N'|''''|')';

just now but i am getting the following error :

0 ERROR AT OR NEAR LINE 31 IN PROCEDURE SQLOUT FOCEXEC *
(FOC260) AN OPERATION IS MISSING AN ARGUMENT
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND
 
Posts: 84 | Registered: June 05, 2006Report This Post
Platinum Member
posted Hide Post
Hi,

I also changed the EQ into IN in the where clause


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

 
Posts: 206 | Registered: February 25, 2005Report This Post
Gold member
posted Hide Post
Thats great !!! Its working !!Thankyou very much!!!

regards,
Aditya
 
Posts: 84 | Registered: June 05, 2006Report This Post
Expert
posted Hide Post
Aditya
try this:
-SET &MYNVAR = '''N''' ;
-TYPE &MYNVAR
-SET &MYPVAR =  'P'  ;
-SET &MYQVAR = 'Q';
 
-SET &FILTER = 'WHERE FRED EQ ''' | &MYPVAR | ''' OR ''' | &MYQVAR | ''' ';
-TYPE &FILTER

and you'll get

 'N'
 WHERE FRED EQ 'P' OR 'Q'


triple quotes yield a single quote in dialogue manager




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
Gold member
posted Hide Post
[QUOTE]Originally posted by Pete:
Hi,
 
Posts: 84 | Registered: June 05, 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     Help!! escape character for single quotes

Copyright © 1996-2020 Information Builders