$Fsterr
The $FSTERR function returns a variable length string of up to 79 characters that contains the prefix and the first counting error message or request cancellation message you received since the last time that the count was reset to zero. $FSTERR returns a null value, if Model 204 has not received a counting error or request cancellation message since:
- The beginning of your Model 204 session
- The last call to the $ERRCLR function
- Processing a User Language OPEN statement
For more information about counting errors or request cancellation messages, refer to the Rocket Model 204 Messages Manual. To return the most recent error message, refer to the $ERRMSG function. $FSTERR is not available for Host Language Interface applications. The $FSTERR function takes no arguments.
The $FSTERR function requires an additional 88 bytes in the fixed portion of the server.
Example
An example of the $FSTERR function with an ON ERROR unit follows. For more information, refer to ON units.
BEGIN FSTERR.PROC: ON ERROR PRINT 'THE REQUEST IS ENDING' PRINT 'THE FIRST ERROR MESSAGE WAS:' PRINT $FSTERR END ON GET.RECS: FIND ALL RECORDS FOR WHICH AGENT = BLAKE END FIND FOR EACH RECORD IN GET.RECS . . END FOR END
See also
- the IFGERR IFAM function
- $ERRMSG, which returns the most recent counting error message.
- The ERRMSGL parameter, which determines the length of errors returned by $ERRMSG and $FSTERR.