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.
Hi all, I know how to use the &focerrnum to send up a popup box for any error. My question is how do I ignore warnings and still trap 'fatal' errors? i.e
quote:
(FOC757) WARNING. YOU REQUESTED PRINT * OR COUNT * FOR A MULTIPATH FILE 0 NUMBER OF RECORDS IN TABLE= 18 LINES= 18
Is there an allocated series of numbers that are 'just' warnings?
It would also be nice to trap the actual text from the error message and display that inthe popup, too. That would make troubleshooting easier.This message has been edited. Last edited by: mpbMDE,
I found an old case which gives you a list with all the messages/warnings. I tweaked it a little. Hope this helps (this example prints the first 100 messages).
-Fred-
-SET &COUNTER= 0;
TABLE FILE SYSTABLE
HEADING
"Error Messages for FOCUS/WEBFOCUS -- Release <+0>&FOCREL "
" "
PRINT
NAME NOPRINT
COMPUTE ERROR_NUMBER/I5 = ERROR_NUMBER + 1; NOPRINT
COMPUTE MESSAGE/A72 = FEXERR(ERROR_NUMBER, 'A72'); AS ''
COMPUTE WARNFLAG/I1 = IF MESSAGE CONTAINS 'WARNING' THEN 1 ELSE 0; NOPRINT
BY TOTAL WARNFLAG NOPRINT PAGE-BREAK
ON WARNFLAG SUBHEAD
"Warnflag: <WARNFLAG"
IF RECORDLIMIT EQ 1
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET LINES 99999
ON TABLE SET STYLE *
INCLUDE = ENDEFLT,$
TYPE=DATA, COLOR=GREEN, WHEN=WARNFLAG EQ 1 ,$
ENDSTYLE
-:NEXT_ERR
-SET &COUNTER = &COUNTER+ 1;
-IF &COUNTER GE 100 GOTO :END_OF_FEX;
MORE
FILE SYSTABLE
IF RECORDLIMIT EQ 1
-GOTO :NEXT_ERR
-:END_OF_FEX
END
Thanks FreSte! Could you post the include as well. I'm getting an error message: FOC3294) CANNOT OPEN INCLUDED STYLESHEET AT LINE 1: INCLUDE=ENDEFLT BYPASSING TO END OF COMMAND Thanks!!!
One more Queston: The error messages usually come in the format (FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: filename How can I capture the filename with the text? (or fieldname if that's the text after the message? Thanks!