Explanation
Returns the exception message. It is used to indicate the error content.
Syntax
INVOKE EXCEPTION-OBJECT "GET-MESSAGE" USING message RETURNING messageLength
Parameter and return value
Specifies the data item that stores the exception message.
Length (number of bytes) of the exception message is returned.