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 just have a fex that can check &FOCERRNUM, &RECORDS, or &LINES that I -INCLUDE at the end of most fexes. for example: -SET &OUTPUT='HTML'; -IF &FOCERRNUM EQ 0 THEN GOTO NOERROR; -NOLINES TABLE FILE CAR PRINT CAR NOPRINT HEADING "There was an error generating this report." WHERE READLIMIT EQ 1 ON TABLE SET ONLINE-FMT &OUTPUT ON TABLE SET PAGE NOPAGE END -RUN -NOERROR
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, 2007
Sayed, as Gerry says, WYSIWYC..you're getting exactly what you coded. the focerrnum for this bit of code is 757 0(FOC757) WARNING. YOU REQUESTED PRINT * OR COUNT * FOR A MULTIPATH FILE The PRINT * and COUNT * commands cause the left-most path in a file to be referenced. If the file has more than one path, data which is not part of the left-most path is not printed or counted.
Do your test again, with a code snipped where the &FOCERRNUM is truly 0.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
I'm lost now. All I'm trying to do is send my users to a default error page if my code breaks on my PROD environment. I do not want them to see any FOC ERROR messeges.
WF 8.x and 7.7.x Win/UNIX/AS400, MRE/Portal/Self-Service, IIS/Tomcat, WebSphere, IWA, Realmdriver, Active Directory, Oracle, SQLServer, DB2, MySQL, JD Edwards, E-BIZ, SAP BW, R/3, ECC, ESSBASE
Posts: 285 | Location: Texas | Registered: June 27, 2006
This code will produce an error (check the source code within the HTML via context menu - right click)
TABLE FILE CAR
PRINT *
END
-RUN
This should not (unless you do not have the CAR file mas and foc in your path!!)
TABLE FILE CAR
PRINT COUNTRY
END
-RUN
The reason, as Susannah has already mentioned, is that the PRINT * against the CAR file would produce a selection against a multiple path and it has always been that FOCUS produces an internal error for this, even if it is a warning!
Your last example
TABLE FILE CAR
printt *
END
-RUN
Would produce a syntax error. This is not the only type of error you should be checking for. Apart from the fact that, if you put code like that into your live environment, it would show a distinct lack of testing being done beforehand!! Check for errors that could occur in live, such as file not found, EDA down, security error etc. etc.
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, 2004
when you have written your report imperfectly, yes you'll get a &FOCERRNUM >0. So be sure to TEST your reports to determine their &FOCERRNUM, and whether or not it is acceptable to you, before putting them in to production, if you plan to use &FOCERRNUM as a branching determinant.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003