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     [CLOSED] Capturing Correct Error No. with &FOCERRNUM

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Capturing Correct Error No. with &FOCERRNUM
 Login/Join
 
Platinum Member
posted
I am running a procedure that prompts for a variable and if the user enters the wrong format I get error code FOC006 followed by FOC009. I want to test only for FOC006 but the code below displays only 9 - the second of 2 errors.

TABLE FILE CAR
PRINT SEG.MODEL
BY COUNTRY BY CAR BY SEATS
IF SEATS EQ '&SEATS.EVAL'
END
-RUN
-TYPE WEBFOCUS ERROR NO. = &FOCERRNUM


ERROR AT OR NEAR LINE 5 IN PROCEDURE Procedure1.fexFOCEXEC *
(FOC006) THE FORMAT OF THE TEST VALUE IS INCONSISTENT WITH FIELD FORMAT: xxx
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT
WEBFOCUS ERROR NO. = 9

This message has been edited. Last edited by: FP Mod Chuck,


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Virtuoso
posted Hide Post
This might not apply to your specific use case but what if you checked for valid numbers instead so you don't even get an error?
  
-IF PATTERNS(&SEATS) NE 9 OR 99 THEN GOTO ERR_MSG
TABLE FILE CAR
PRINT SEG.MODEL
BY COUNTRY BY CAR BY SEATS
WHERE SEATS EQ &SEATS
END
-RUN
-EXIT
-ERR_MSG
-TYPE YOU ENTERED AN INVALID VALUE.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
Thanks for the suggestion but actually my prompted field is a date and I know I can check its syntax but was just wanting to capture the correct error number.


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Virtuoso
posted Hide Post
Ian

Unfortunately that variable is always the last error number that occurred even though it may not be the one you want to capture.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Platinum Member
posted Hide Post
Ok thanks for the confirmation Chuck.


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report 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     [CLOSED] Capturing Correct Error No. with &FOCERRNUM

Copyright © 1996-2020 Information Builders