Messages

This discusses some of the ways that messages can be used to communicate between users and programs.

On the iSeries™ server, communication between procedures or programs, between jobs, between users, and between users and procedures or programs occurs through messages. Messages can be sent:

A message can be predefined or immediate:

Interactive system users can send only immediate messages and replies.

OPM programs or ILE procedures can send immediate messages or predefined messages with user-defined data. In addition, programs or procedures can:

Your system comes with an extensive set of predefined messages that allow communication between programs within the system and between the system and its users. Each licensed program you order has a message file that is stored in the same library as the licensed program it applies to. For example, system messages are stored in the file QCPFMSG in the library QSYS.

The system uniquely identifies each predefined message in a message file by a 7-character code and defines it by a message description. The message description contains information such as message text and message help text, severity level, valid and default reply values, and various other attributes.

All messages that are sent or received in the system are transmitted through a message queue. Messages that are issued in response to a direct request, such as a command, are automatically displayed on the display from which the request was made. For all other messages, the user, program or procedure must receive the message from the queue or display it. There are several IBM-supplied message queues in the system.

The system also writes some of the messages that are issued to logs. A job log contains information related to requests entered for a job, the history log contains job, subsystem, and device status information.

Related concepts
Types of message queues
Related tasks
Allocate resources
Check for the existence of an object
Send and receive data with a display file
Related reference
Monitor Message (MONMSG) Command
Related information
Add Message Description (ADDMSGD) command