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     [CLOSED] Problem with special characters input

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Problem with special characters input
 Login/Join
 
Gold member
posted
When I run the stored procedure in SQLPlus

  EXECUTE usp_RPT_TransactionList
@i_nodes = '10001 ',
@i_user = 'mradmin@external',
@i_user_type = 'E',
@i_clearcard = 'N',
@i_scheduler = 'N',
@i_basedate='2011/03/18'
,@i_rlsdate_token = 'FROMTO|20080101|20110303|'
,@i_paymenttype = 'MC'
,@i_currency = 'USD'
,@i_L2 = 'LAXAP / 33718';


It returns 153 rows as expected. And running the report in WebFOCUS, I get 0 rows. Is there an issue with WebFOCUS having 'LAXAP / 33718'
as an input parameter?

 
TABLE FILE USP_RPT_TRANSACTIONLIST
PRINT
TRANSACTION_ID
MERCHANT_ID
SITE_ID
WHERE ( @I_NODES EQ '10001 ' )
AND ( @I_USER EQ 'mradmin@external' )
AND ( @I_USER_TYPE EQ 'E' )
AND ( @I_SCHEDULER EQ  'N' )
IF @I_CLEARCARD EQ N
IF @I_BASEDATE EQ 2011/03/18
IF @I_RLSDATE_TOKEN EQ FROMTO|20080101|20110303|
IF @I_CURRENCY EQ USD
IF @I_L2 EQ 'LAXAP / 33718'
IF @I_PAYMENTTYPE EQ MC
ON TABLE HOLD AS TRANSLIST1 FORMAT ALPHA
 

This message has been edited. Last edited by: Kerry,


WebFOCUS 8.0.08
Solaris
HTML, PDF, XLS, CSV
 
Posts: 55 | Registered: September 08, 2010Report This Post
Virtuoso
posted Hide Post
no.

but i would close the WHERE statement with a ";"

and try putting quotes around
FROMTO|20080101|20110303|
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Virtuoso
posted Hide Post
i would change all the IF statements to WHERE...




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
Virtuoso
posted Hide Post
and start the code with

-SET &ECHO=ALL;

so you see what is done...errors maybe...

and end the code with

END




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
Expert
posted Hide Post
All tests against a string should have quotes around the test variable.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
<JG>
posted
Turn on the client side SQL traces and look at what WebFOCUS is actually trying to pass to the DB engine.

It should show you exactly where the mistake is in your code or could point to an incorrect translation.

There is essentially no difference in what should be generated by using WHERE or IF.

The rules for using them however do differ .

A text string in a where MUST always be quoted otherwise it treats it as a column.
A text string in an IF only requires quoting if it contains a space.

With a compounded WHERE you should allways terminate with a ;

FROMTO|20080101|20110303| is not any type of WebFOCUS syntax that I've ever seen, it's an SQL call.

Code it using the correct WebFOCUS syntax FROM '20080101' TO '20110303' and check the traces to make sure it is translated correctly
 
Report This Post
Expert
posted Hide Post
quote:
FROMTO|20080101|20110303|

I would hazard a guess that WF is treating the pipe characters in the only way it knows how, and that is a soft concatenation symbol. Therefore the SQL would probably have @i_rlsdate_token being equal to FROMTO2008010120110303.

JG has already suggested where I would go next.

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
<JG>
posted
Tony because it's an IF not a WHERE I would suspect that it's actually passing it as a QUOTED string.

Not tested but in an IF I would expect it to be passed as is. In a WHERE I would expect to have to escape the
| by using || or even |||, have to try and remember how I've done it in the past.

IF does not handle expressions which is what a concaternation is. WHERE does.

However I expect the parser and translator have got their knickers well and truly in a twist over this request.
 
Report 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     [CLOSED] Problem with special characters input

Copyright © 1996-2020 Information Builders