Execute method

Purpose

The Execute method sends an administration command message to the command server and waits for any reply messages. This method corresponds to the MQAI call, "mqExecute,", in the WebSphere MQ Programmable Command Formats and Administration Interface.

Format

Execute (QueueManager, Command, OptionsBag, RequestQ, ReplyQ, ReplyBag)

Parameter

QueueManager (MQQueueManager) - input
The queue manager to which the application is connected.
Command (LONG) - input
The command to be executed.
OptionsBag (MQBag) - input
The bag containing options that affect the processing of the call.
RequestQ (MQQueue) - input
The queue on which the administration command message will be placed.
ReplyQ (MQQueue) - input
The queue on which any reply messages are received.
ReplyBag (MQBag) - output
A bag reference containing data from reply messages.

Visual Basic Language Invocation

To send an administration command message and wait for any reply messages:

Set ReplyBag = mqbag.Execute(QueueManager, Command,

[OptionsBag],[RequestQ],[ReplyQ])