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.
FEXERR(error, 'A72')
where:
Numeric
Is the error number, up to five digits long.
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.
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 |