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.
I have posted about this before but I am still looking at it.
Say I have a fex that has a bug in it.
like this
-*with_bug.fex -GOTO MISSING_LABEL;
that's it. there is no missing_label so it throws (FOC305) SPECIFIED LABEL NOT FOUND: MISSING_LABEL
OK that's fine.
Now say I have a second fex that contains this line in it.
-INCLUDE with_bug.fex -TYPE whatever -TYPE &FOCERRNUM When I run this I get (FOC305) SPECIFIED LABEL NOT FOUND: MISSING_LABEL
I do not get the focerrnum or the "whatever" text. The processing stops in the included file and that is all I am out of luck.
Is there any way to trap that error? Like on error resume next kind of thing. try .. catch?
Note: I am not looking for advice as to how to avoid the error. I need to call an external fex (which is outside of my control) and the fex could have an error in it.
If there is an error in it then I want to branch somewhere and do a clean display for the user with a nice error message.
How can I trap that error inside the calling fex?
Thanks
JodyeThis message has been edited. Last edited by: <Kathryn Henning>,
SET &ECHO=ON; -SET &FOCERRNUM=-1; TABLE FILE NONESUCH LIST * END -RUN -? &FOCERRNUM
Is this trapping a Dialogue manager error?
When I run the code, I get:
-SET &FOCERRNUM=-1;
TABLE FILE NONESUCH
LIST *
END
-RUN
0 ERROR AT OR NEAR LINE 3 IN PROCEDURE ssearch_drill_holdings
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: NONESUCH
BYPASSING TO END OF COMMAND
CURRENTLY DEFINED & VARIABLES STARTING WITH 'FOCERRNUM':
&FOCERRNUM = 0
-? &FOCERRNUM
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
I can't see why &FOCERRNUM shouldn't run along the lines of &LINES, making attributes of the outcome of FOCUS COMMANDs accessible for decisionmaking in Dialog Manager.
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
i'm thinking that some focerrnums are ebola, and some are just the flu. if you have no control over the included fex, and it has a fatal error, its going to flat die on you. period. it seems that GOTO labelname is going to be fatal if that labelname doesn't exist, whereas TABLE FILE fantasyfile appears to be nonfatal, as it offers the option 'BYPASSING TO END OF COMMAND'
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003