Previous Topic: $ERRORDB2PLAN (DB2 Only)Next Topic: $ERRORDVWDBID Function


$ERRORDESCRIPTION Function

This function returns an alphanumeric message of up to 80 characters that describes 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.