Message

The Message type defines a record for retrieving errors and messages.

Syntax

PUBLIC TYPE Message RECORD
    isErrorMessage INTEGER,     
    message STRING              
END RECORD
  1. isErrorMessage is set to true, if the message describes an error.
  2. Message contains the details of the message.

Usage

You can use it to retrieve messages or errors in an application testing the MESSAGE or ERROR instructions. A variable of the type Message must be defined, for example, calling the action getMessage():

DEFINE msg ggc.Message

CALL ggc.getMessage() RETURNING msg.*
DISPLAY msg.message