Monitor Messages More Efficiently

IT Infrastructure - Other
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

When you display the QSYSOPR message queue, you probably spend a lot of time trying to locate important messages. This is because everything is sent to this queue. You should consider creating an alternate message queue-QSYSMSG. Key in the following:

 CRTMSGQ MSGQ(QSYS/QSYSMSG) + TEXT('Optional MSGQ to receive specific system messages') 

When this queue exists (in QSYS only), certain messages are directed to it instead of, or in addition to, the QSYSOPR message queue. You can then run DSPMSG QSYSMSG to view the messages. You can also write a break handling program to receive messages for which you can perform special actions. The program can send messages to the QSYSOPR message queue or another message queue. Disk unit failure messages, for instance, are sent to QSYSMSG. For a complete list of all the messages directed to QSYSMSG, and for an example of a break handling program, look at the AS/400 CL Programmer's Guide (SC41-8077, CD-ROM QBKA7102).

- Jean Jacques Risch

BLOG COMMENTS POWERED BY DISQUS