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     Having Trouble with GOTO statements

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Having Trouble with GOTO statements
 Login/Join
 
Member
posted
I'm having trouble getting the following goto statements to work.

-IF '&SEC_LINE' EQ 'SEC010_LN020' THEN GOTO SEC010_LN020
- ELSE IF '&SEC_LINE' EQ 'SEC010_LN040' THEN GOTO SEC010_LN040;
-SEC010_LN020
WHERE ACC_TYPE EQ '1' OR '2';
WHERE TC NE '6018';
WHERE PST_FLG EQ 'Y';
-GOTO ENDWHERE
-SEC010_LN040
WHERE ACC_TYPE EQ '3' OR '4';
WHERE TC NE '6118';
WHERE PST_FLG EQ 'Y';
-GOTO ENDWHERE
-ENDWHERE

The fex seems to execute the first label no matter what. Could you please help me on this? Thanks

Stephen A
 
Posts: 18 | Registered: June 17, 2004Report This Post
<Tim Howard_ABCBS>
posted
Try taking the ticks of the & Variables:

-IF '&SEC_LINE' EQ 'SEC010_LN020' THEN....
should be
-IF &SEC_LINE EQ 'SEC010_LN020' THEN....
 
Report This Post
Expert
posted Hide Post
or,
just
-GOTO &SEC_LINE ;

We don't know your platform/version (edit your profile signature), so just make sure your statement labels are 12 chars max in length.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Silver Member
posted Hide Post
quote:
'&SEC_LINE'


Try removing the ' ' ticks, just a guess.......


7.6.6 Mainframe
7.6.4 Web Focus
Windows

 
Posts: 45 | Location: Gaffney SC | Registered: March 30, 2007Report This Post
Platinum Member
posted Hide Post
And if removing the ticks doesn't work, split the DM into 2 distinct statements by removing the ELSE and terminating the first line with ;

Kevin


WF 7.6.10 / WIN-AIX
 
Posts: 141 | Location: Denver, CO | Registered: December 09, 2005Report This Post
Virtuoso
posted Hide Post
Go with Susannah's suggestion


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Member
posted Hide Post
You folks are geniuses. Removing the tick marks solved the problem...

Stephen A
 
Posts: 18 | Registered: June 17, 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     Having Trouble with GOTO statements

Copyright © 1996-2020 Information Builders