Top
NetCOBOL V11.0 J Adapter Class GeneratorUser's Guide
FUJITSU Software

5.4.1 GET-MESSAGE method (object method)

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

message (attribute: PIC X ANY LENGTH)

Specifies the data item that stores the exception message.

messageLength (attribute: PIC S9(9) COMP-5)

Length (number of bytes) of the exception message is returned.