ERRORMSG function [Miscellaneous]

Provides the error message for the current error, or for a specified SQLSTATE or SQLCODE value.

 Syntax
 Parameters
 Returns
 Remarks
 See also
 Standards and compatibility
 Example