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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
syntax error?
 Login/Join
 
Master
posted
Hello!

When I run the following code I get an error of (FOC002) A WORD IS NOT RECOGNIZED: GOTO



-IF &REP_GRP_ATTRIBUTE EQ 'FOC_NONE' THEN GOTO MYFASTER ELSE GOTO MYSLOWER;

-MYFASTER
TABLE FILE MATRIX_DIV_MTD
GOTO ADD_DETAILS;

-MYSLOWER
TABLE FILE MATRIX_DIV_MONTHLY
GOTO ADD_DETAILS;

I've looked up the syntax for GOTO and it lists the ; as optional...and I've tried it both ways with no luck.

Thanks!


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Expert
posted Hide Post
Jason,

Grab the manual and read up on dialogue manager. GOTO is a DM command and not a WF command so it should be contained on a line prefixed with a hypen -

-GOTO .......; or
-IF .... THEN GOTO ....;


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
If you treat GOTO as a standalone statement in dialog manager, you have to have a prefix -. If it is used within if .... then goto ... else goto, you don't need the prefix.
 
Posts: 118 | Location: Omaha, NE | Registered: June 12, 2003Report This Post
Expert
posted Hide Post
Hi Jason,

Can you please correct both line?

from:
GOTO ADD_DETAILS;
to:
-GOTO ADD_DETAILS;

Hope this helps. Smiler

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Master
posted Hide Post
it all works now!

Thank you for your patience!


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Virtuoso
posted Hide Post
Jason,
A small comment. You should code:
-GOTO ADD-DETAILS
without the semicolon. That is what the book says. Although you will find that it works with the semicolon, some day, a future release might be more orthodox and you will have problems.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders