Managing message queues
You can manage your message queues in several ways.
The operations you can use to manage your message queues include:
- Create message queues.
- Change the attributes of message queues.
- Change the message queue for a printer.
- Print all messages in the message queue.
The following details show how these examples can be implemented using the message queues.
- You are a small-sized customer who has one LAN line and few users: No changes need to be made. All messages remain in the QSYSOPR message queue or in the configured message queue.
- You are a medium-sized customer who has a couple of LAN lines: In this instance, you need to change QCFGMSGQ (the massage queue for lines, controllers and devices) system value to the system-supplied message queue, QSYS/QCFGMSGQ. As a result, all communications messages for the object types that support the MSGQ configuration parameter go to this queue.
- You are a large-sized customer who has many LAN lines and many WAN lines, with many users on each line. You want to set up the message queues so that the messages are separated in the following ways:
- The messages for the Ethernet LAN go to the ETHMSGQ message queue: On this line, the system configures all the controllers automatically.
- The messages for the token-ring LAN go to the TRNMSGQ message queue: On this line, the system configures most controllers; however, some controllers must be configured manually.
- All messages for workstation users go to the WSMSGQ message queue: This includes local workstations, remote workstations, pass-through, and Telnet.
- All other communications messages go to the QCFGMSGQ message queue.
- You are an experienced operator who have written a program that helps the operator know which message queues are important. Here is how to configure this example:
- Change the system value QCFGMSGQ to QSYS/QCFGMSGQ.
- Create the Ethernet line description with the MSGQ(ETHMSGQ) parameter value: The system creates all controllers (and thus devices) on this line. This means the system sends their messages to the message queue defined in the line ETHMSGQ.
- Create the token-ring line description with the MSGQ(TRNMSGQ) parameter value: The automatically created controllers and devices on this line have their messages sent to the TRNMSGQ message queue. Controllers that are manually created on this line are created with the MSGQ(TRNMSGQ) parameter value.
- Create the X.25 line description with the MSGQ(V25MSGQ) parameter value: All controllers that are created for this X.25 line description must be created using the MSGQ(X25MSGQ) parameter value on the CRTCTLxxx command.
- You can set up the workstation controller descriptions in the following ways:
- Change the local workstation controller description, which the system automatically created, to the MSGQ(WSMSGQ) parameter value.
Notes:
- Create all printer devices attached to the workstation controller with the MSGQ(*CTLD) parameter value. Messages for display devices always go to the message queue that is defined in the associated controller. Thus, changing the message queue of the controller causes the messages for the devices to go to the messages queue defined in the controller description.
- It is possible for the user to use the Change Command Default (CHGCMDDFT) command and change the default value of the message queue. This means that the automatic creation of the local workstation controller uses a different message queue.
- Create the virtual controllers for pass-through and Telnet with the MSGQ(WSMSGQ) parameter value.
Like the local workstation controllers, the devices attached to the virtual workstation controllers have their messages sent to the queue defined in the virtual controller. The same logic works for the remote workstation controllers and their attached devices.
- You are a large-sized customer who is now using TCP/IP only and wants to have the line and workstation messages logged to the QTCP message queue: You can manage this configuration by changing the system value QCFGMSGQ to QSYS/QTCP.
- Creating message queues
The message queue provides you a place to receive and store informational and inquiry messages within a particular library.- Creating message queue QSYSMSG for severe messages
You can create an optional message queue, QSYSMSG, to hold specific severe system messages that require immediate action.- Changing the attributes of message queues
Your system has several message queues that hold messages with helpful information about finding and reporting problems. You can customize the way that a message queue notifies you of messages.- Changing the message queue for a printer
You can change the location of the message queue that stores messages associated with each printer. Changing this location allows you to separate your printing messages from the system, the user, or the error messages.- Printing all messages in the message queue
Sometimes a problem has many messages associated with it. To organize these messages that are reporting possible problems, you can print them out from a message queue.
Parent topic:
Details: Message queues