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.
0 ERROR AT OR NEAR LINE 21 IN PROCEDURE SQLOUT FOCEXEC *
(FOC262) UNBALANCED PARENTHESES
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND
0 ERROR AT OR NEAR LINE 43 IN PROCEDURE EX4_BAK1FOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HLDSOURCE
BYPASSING TO END OF COMMAND
0 ERROR AT OR NEAR LINE 66 IN PROCEDURE EX4_BAK1FOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HLDSOURCE
BYPASSING TO END OF COMMAND
0 ERROR AT OR NEAR LINE 91 IN PROCEDURE EX4_BAK1FOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HLDSOURCE
BYPASSING TO END OF COMMAND
0 ERROR AT OR NEAR LINE 111 IN PROCEDURE EX4_BAK1FOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HLDSOURCE
BYPASSING TO END OF COMMAND
0 ERROR AT OR NEAR LINE 134 IN PROCEDURE EX4_BAK1FOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HLDSOURCE
BYPASSING TO END OF COMMAND
0 ERROR AT OR NEAR LINE 157 IN PROCEDURE EX4_BAK1FOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HLDSOURCE
BYPASSING TO END OF COMMAND
0 ERROR AT OR NEAR LINE 180 IN PROCEDURE EX4_BAK1FOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HLDTOTAL
0 ERROR AT OR NEAR LINE 184 IN PROCEDURE EX4_BAK1FOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HLDTOTAL
BYPASSING TO END OF COMMAND
Here is my code:
TABLE FILE SQLOUT
SUM
Units
UnitsPace
UnitsMTDGoal
UnitsGoal
RevCred
RevCredPace
RevCredMTDGoal
RevCredGoal
OpenBal
OpenBalPace
OpenBalMTDGoal
OpenBalGoal
BY DivisionName
BY GroupName
BY Channel
BY CoreFlag
WHERE DivisionName EQ '&DivisionName';
WHERE GroupName EQ '&GroupName';
-*WHERE ProductGroup NE 'CONSUMER CROSS SELL';
-*WHERE ProductGroup NE 'BUSINESS CROSS SELL';
-*WHERE ( Channel CONTAINS 'TEAM' ) OR ( GroupName CONTAINS 'Bus' ) AND ( Channel CONTAINS 'BUS BKG' ));
WHERE Channel CONTAINS 'TEAM' OR (GroupName CONTAINS 'Bus Bank Sales' AND Channel CONTAINS 'BUS BKG');
-*WHERE Channel CONTAINS 'TEAM';
ON TABLE HOLD AS HLDSOURCE FORMAT ALPHA
END
-RUN
I don't suppose it's complaining about that commented line with the unbalanced parenthesis?
Does the statement work if you add more parenthesis?
WHERE (Channel CONTAINS 'TEAM') OR ((GroupName CONTAINS 'Bus Bank Sales') AND (Channel CONTAINS 'BUS BKG'));
Are your parenthesis actual ASCII parenthesis, or is one of them a different character that looks like a parenthesis?
Do your variables &GroupName or &DivisionName perhaps contain a single quote? I suspect that &GroupName might contain something like:
-SET &GroupName = Some value'(;
That would break this table request.
What also looks peculiar is that your TABLE statement seems to have leading space. Perhaps that's just a copy/paste error in this posting, but if not, WF might be skipping the statement and interpret things a little different from what you expect.
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 :