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     Syntax error? [RESOLVED]

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Syntax error? [RESOLVED]
 Login/Join
 
Platinum Member
posted
What is wrong with thnis Syntax? I am getting a syntax error on the IF...THRN....ELSE statement.

SQL SQLMSS
INSERT INTO XXX
(YYY
,ZZZZ)
END
-RUN

-IF &RETCODE NE 0
THEN
-EXIT
ELSE
END



All I want to do is exit the report if the write wasn't successful. If it was, then go on processing the report.

This message has been edited. Last edited by: Ted Michalski,


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
 
Posts: 106 | Registered: June 25, 2009Report This Post
Platinum Member
posted Hide Post
More like this:
 SQL SQLMSS
INSERT INTO XXX
(YYY
,ZZZZ)
;
END
-RUN 
-IF &RETCODE NE 0 THEN GOTO EXIT ELSE GOTO CONTINUE; 
-CONTINUE
{yada yada}
-EXIT


WebFOCUS 8.2.06
 
Posts: 210 | Location: Sterling Heights, Michigan | Registered: October 19, 2010Report This Post
Platinum Member
posted Hide Post
(FOC1517) UNRECOGNIZED COMMAND IF 2627 NE 0 THEN GOTO EXIT ELSE GOTOCONTINUE;


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
 
Posts: 106 | Registered: June 25, 2009Report This Post
Platinum Member
posted Hide Post
-IF &RETCODE NE 0 THEN GOTO EXIT ELSE GOTO CONTINUE;

Must have the -


WebFOCUS 8.2.06
 
Posts: 210 | Location: Sterling Heights, Michigan | Registered: October 19, 2010Report This Post
Gold member
posted Hide Post
You have to do something like this:

-IF &RETCODE NE 0 THEN GOTO EXIT_LBL ELSE GOTO END_LBL;
-*
-EXIT_LBL
EXIT
-*
-END_LBL
END


WebFOCUS 7.6, 7.7
Windows, All Output formats
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Report This Post
Platinum Member
posted Hide Post
Thanks for the input. Works fine now.


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
 
Posts: 106 | Registered: June 25, 2009Report This Post
Member
posted Hide Post
dbeagan,

CONTINUE is a researved word and does not play nicely with goto.

At least under 7.6.11, "-GOTO CONTINUE" will work but using with a "-IF" will not.


WebFOCUS 8.1.04; SQL Server 2012; Windows 7; Windows Server 2012 R2;
 
Posts: 26 | Registered: November 21, 2005Report This Post
Platinum Member
posted Hide Post
Thanks Rob. Hopefully MichaelBalle only used it as an example and had his own label names.


WebFOCUS 8.2.06
 
Posts: 210 | Location: Sterling Heights, Michigan | Registered: October 19, 2010Report 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     Syntax error? [RESOLVED]

Copyright © 1996-2020 Information Builders