Remove Nonprogram Messages (QMHRMVM) API


  Required Parameter Group:


  Optional Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Remove Nonprogram Messages (QMHRMVM) API removes messages from nonprogram message queues. The removed instances of the messages are no longer available for you to work with. However, other instances of the messages might still exist in other message queues, and the definitions of predefined messages are still in the message files.

You can use this API to remove a single message or a group of messages from a message queue, or to clear a message queue of all messages except unanswered inquiries.

To remove messages from program message queues, see Remove Program Messages (QMHRMVPM) API.


Authorities and Locks

Message Queue Authority
*OBJOPR and *DLT
Message Queue Library Authority
*EXECUTE

Required Parameter Group

Qualified message queue name
INPUT; CHAR(20)

The name of the message queue from which to remove messages, and the library in which it resides. The first 10 characters specify the message queue, and the second 10 characters specify the library.

You can use these special values for the library name:


Message key
INPUT; CHAR(4)

If the messages to remove parameter specifies *BYKEY, the key to the single message being removed. The key is assigned by the command or API that sends the message.

If the messages to remove parameter does not specify *BYKEY, use blanks for this parameter.

Messages to remove
INPUT; CHAR(10)

The message or group of messages being removed. Valid values follow:


Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Optional Parameter Group

Allow default reply rejection
INPUT; CHAR(10)

Removing an unanswered inquiry causes the default reply to be sent to the inquiry message. This value indicates whether a reply handling exit program will be allowed to reject a default reply that is sent as a result of using this function. A reply handling exit program can be registered via the system registration facility for exit point QIBM_QMH_REPLY_INQ. If the parameter is not specified, a value of *NO is used. Valid values are:


Error Messages



API introduced: V2R1.1

[ Back to top | Message Handling APIs | APIs by category ]