Previous Topic: $ERRORPROC FunctionNext Topic: $ERRORSUBSCRIPT Function


$ERRORSTMT Function

This function returns the sequence number of the statement that contains the most recent error.

Note: $ERROR functions return meaningful data only in the error procedure or in a procedure or subprogram invoked by the error procedure. In the case of a database error, $ERROR functions can also return meaningful data in the scope of a WHEN ERROR clause. You do not have to pass the $ERROR functions as parameters.