FEXERR: Retrieving an Error Message

How to:

The FEXERR function retrieves an Information Builders error message. It is especially useful in a procedure using a command that suppresses the display of output messages.

An error message consists of up to four lines of text; the first line contains the message and the remaining three contain a detailed explanation, if one exists. FEXERR retrieves the first line of the error message.


Top of page

x
Syntax: How to Retrieve an Error Message
FEXERR(error, 'A72')

where:

error

Numeric

Is the error number, up to five digits long.

output_format

Alphanumeric, A72

Is the format of the output value whose length is 72. The maximum length of an Information Builders error message is 72 characters.



Example: Retrieving an Error Message

FEXERR retrieves the error message whose number is contained in the &ERR variable, in this case 650. The result has the format A72.

FEXERR(&ERR, 'A72')

The result is (FOC650) THE DISK IS NOT ACCESSED.


iWay Software