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     FOC262 error message

Read-Only Read-Only Topic
Go
Search
Notify
Tools
FOC262 error message
 Login/Join
 
Gold member
posted
Can anyone help me to solve this problem, my code as follow:

-SET &APL = IF (((&LONSTAT1 EQ 1) AND (&TENOR EQ 0)) AND ((&LONSTAT2 EQ 1) OR (&LONSTAT3 EQ 1) OR (&LONSTAT4 EQ 1) OR (&LONSTAT5 EQ 1) OR (&LONSTAT6 EQ 1) OR (&LONSTAT7 EQ 1) OR (&LONSTAT8 EQ 1) OR (&LONSTAT9 EQ 1) OR (&LONSTAT10 EQ 1) OR (&LONSTAT11 EQ 1) OR (&LONSTAT12 EQ 1))) THEN 'OPEN BREAK' ELSE 'BREAK';


while running the report, it show me the error message as follow:

0 ERROR AT OR NEAR LINE 431 IN PROCEDURE __T00060FOCEXEC *
(FOC262) UNBALANCED PARENTHESES


How to solve it?

This message has been edited. Last edited by: <Mabel>,
 
Posts: 55 | Registered: May 15, 2004Report This Post
Guru
posted Hide Post
The following looks ok. I just reformatted it so
I could read it more easily.
If it spans across multiple lines you must put a '- ' (dash space) at the beginning of each subsequent line.

-SET &APL = IF
- (
- ((&LONSTAT1 EQ 1) AND (&TENOR EQ 0))
- AND
- ((&LONSTAT2 EQ 1) OR (&LONSTAT3 EQ 1) OR
- (&LONSTAT4 EQ 1) OR (&LONSTAT5 EQ 1) OR
- (&LONSTAT6 EQ 1) OR (&LONSTAT7 EQ 1) OR
- (&LONSTAT8 EQ 1) OR (&LONSTAT9 EQ 1) OR
- (&LONSTAT10 EQ 1) OR (&LONSTAT11 EQ 1) OR
- (&LONSTAT12 EQ 1))
- ) THEN 'OPEN BREAK' ELSE 'BREAK';

If this doesn't help, try using &ECHO to debug what it is actually coming out to be. ie.
-SET &ECHO=ALL;

This will show you the code you wrote as well
as what it looks like after you substitute the
values for the variables.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Gold member
posted Hide Post
Thanks Piippo, I've try this. But the same error had happen.
 
Posts: 55 | Registered: May 15, 2004Report This Post
Guru
posted Hide Post
Did you try the &ECHO as well?
What does that show you?

If the values that you are passing into
the &vars have spaces or special characters in
them you will probably need to enclose them in single quotes '&TENOR' EQ ...
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Expert
posted Hide Post
try breaking it into two bits
-SET &FLAG1 = IF (&LONSTAT1 EQ 1) AND (&TENOR EQ 0) THEN 1 ELSE 0;
-SET &FLAG2 = IF &LONSTAT2 EQ 1 THEN 1 ELSE
-IF &LONSTAT3 EQ 1 THEN 1 ELSE
-IF &LONSTAT4 EQ 1 THEN 1 ELSE
-IF &LONSTAT5 EQ 1 THEN 1 ELSE
-IF &LONSTAT6 EQ 1 THEN 1 ELSE
-IF &LONSTAT7 EQ 1 THEN 1 ELSE
-IF &LONSTAT8 EQ 1 THEN 1 ELSE
-IF &LONSTAT9 EQ 1 THEN 1 ELSE
-IF &LONSTAT10 EQ 1 THEN 1 ELSE
-IF &LONSTAT11 EQ 1 THEN 1 ELSE
-IF &LONSTAT12 EQ 1 THEN 1 ELSE 0;
-SET &APL =IF &FLAG1 EQ 1 AND &FLAG1 EQ 1 THEN
- 'OPEN BREAK' ELSE 'BREAK';
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
Thanks Pippo & Susannah.

I will try it later.

Piippo, actually, the parameters had been passed into and show me as well (-SET &ECHO=ALLWink
 
Posts: 55 | Registered: May 15, 2004Report 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     FOC262 error message

Copyright © 1996-2020 Information Builders