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] SQLCode 907 for SQL Pass thru report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] SQLCode 907 for SQL Pass thru report
 Login/Join
 
Platinum Member
posted
Hello,

I am working on a SQL pass thru report but it errors out with SQLCode 907 - Missing right parenthesis.. The query runs fine in SQL Developer (Oracle DB) ... query does not run in WF...

I double checked the query, there is no missing parenthesis... I am not sure what is the cause of this error?

Please help - Thanks!

SELECT
..............
...............
,C.TERM_ID AS "TID"
,C.TRAN_DATE AS "TRANDATE"
,INITCAP(LOWER('MIS-USE')) AS "TRANTYPE"
,C.TRAN_ID AS "TRANID"
................
..............
FROM BROWSER.INFO_MASTER A
JOIN AEP.ALLOCATE_ALLOCATE B ON(B.MID = A.MID)
JOIN TXN.MIS_USE_FEE C ON(TRIM(C.MID) = B.MID)
WHERE C.TRAN_DATE >= '01-aug-10'
AND ............
AND...........

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


WF 7.7.03, Win 7
 
Posts: 127 | Registered: January 12, 2017Report This Post
Virtuoso
posted Hide Post
Do you have a column in that query that is of type TIMESTAMP(0) WITH LOCAL TIME ZONE?

WebFOCUS does not handle those correctly. I usually CAST such fields to DATE, which WF does understand.

If that's not it, try adding trace statements around the passthru and SET XRETRIEVAL = OFF, so that you can see how WebFOCUS interprets the query.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
Do you have any comments in your code? Things like --this is a comment after each line of SQL. That might need to be removed from your SQL.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
Thank you guys for your responses..

I added the trace statements and it helped me see where the issue was..

Worked it out.. Thanks...


WF 7.7.03, Win 7
 
Posts: 127 | Registered: January 12, 2017Report 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] SQLCode 907 for SQL Pass thru report

Copyright © 1996-2020 Information Builders