Are their any restrictions when setting a message monitor to permanently remove message from a message queue?
Yes. If a message queue displays in break mode (such as QSYSOPR), message monitors to that queue will fail when they are set to permanently remove monitored messages from the message queue. Why? Because, when the display is in break mode it gets an exclusive lock on the message queue. The message monitor will not also be able to get a lock, which it needs to remove the message. If the delivery mode of the message queue is changed to *HOLD, then the above restriction is not a problem. Or, if the message monitor is not set to remove messages from the message queue, the display of the message queue in break mode is not a problem.