Message Handling


What is the use of message command in a report? What are the different message types?
Mention the different types of messages that appear in the program system.

Messages are used to describe what is happening in the program execution to the programmer or user. Messages represents with a three-digit number. Messages range starts from 000 to 999.

Messages are basically six types. Those are -

A Abend The message appears in a separate dialog box and the program execution get terminated.
When the user has confirmed the message, control returns to the next-highest area menu.
E Error An error dialog appears, or the program terminates depending on the program condition.
I Information The message appears in a separate dialog box.
Once the user has confirmed the message, the program execution continues from the next statement coded immediately after the MESSAGE statement.
S Success The total program execution continues normally, and the message is displayed in the status bar of the screen.
W Warning An error message is displayed in the status bar of the screen and the program execution terminates.
X Exit or Abort No message is displayed.
The program terminates with a short dump.
Program terminations with a short dump normally only occur when a runtime error occurs.