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     SQL passthru problem with 525

Read-Only Read-Only Topic
Go
Search
Notify
Tools
SQL passthru problem with 525
 Login/Join
 
Member
posted
I use the following SQL passthru code:
SQL SQLORA
select ' xx ' || DS_DV_EXT_VALUE || ' - ' || DS_DV_TRANSLATION
from lookup_sis
where DS_ELEM_NO in ('MM205')
;
TABLE FILE SQLOUT
PRINT *
END
------------------------------------
This works perfectly with 4.3.6.
With 5.2.5 I get the following error:
(FOC230) MISSING ENDING QUOTE MARK:
''XX''||DS_DV_EXT_VALUE||''-''||DS_DV_TRANSLATION
-------------------------------------
I found - by playing with it - that anytime I start the concatenation with a literal value instead of a database column, it will fail. This
works fine with native Oracle, and with WF 436. Why won't it work with 525?
 
Posts: 26 | Location: Mercy College | Registered: May 06, 2003Report This Post
<Grzegorz>
posted
I checked this with 5.2.1 and it works, but it results in the same error in 5.2.4 (Oracle 8.1.7).
<br />
Example (to easy reproduce):<br />
SQL SQLORA<br />SELECT '...' || SYSDATE FROM DUAL;<br />END<br />-* 
Results in error with some WF releases
Workaround 1:
Add empty string at the end of the concatenated field.<br />
SQL SQLORA<br />SELECT '...' || SYSDATE || '' FROM DUAL;<br />END
Workaround 2: Add the name for the field using Oracle SQL AS syntax.<br />
SQL SQLORA<br />SELECT '...' || SYSDATE AS FIELD FROM DUAL;<br />END
It looks like the following (after analysing traces):<br /><br />Before sending query to Oracle, the master file for the result is created, and WebFOCUS is not going to accept something like ''...''||SYSDATE as the TITLE attribute of the field. The TITLE attribute is never used after that, the FIELDNAME attribute is used instead.<br />In the "working" WF releases the TITLE attribute is not set (the same for the working queries in the "wrong" releases)<br /><br />I did not check it with 5.3 (beta) yet, but if it behaves like 5.2.4 and 5.2.5 it should be changed.<br /><br />Regards<br /> Grzegorz

This message has been edited. Last edited by: <Mabel>,
 
Report This Post
Member
posted Hide Post
You get a 5 star rating from me - your solutions worked. Thanks for the reply.
 
Posts: 26 | Location: Mercy College | Registered: May 06, 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     SQL passthru problem with 525

Copyright © 1996-2020 Information Builders