Previous Topic: MQ INQUIRE—Inquire AttributesNext Topic: MQ DISCONNECT—Disconnect Queue Manager


MQ CLOSE—Close Queue

The ADDRESS MQ CLOSE command closes the message queue.

This command has the following format:

ADDRESS MQ CLOSE
   {CONHANDLE(varHCONN)}
   {OBJHANDLE(varHOBJ)}
CONHANDLE(varHCONN)

Defines the variable name that stores the connection handle.

OBJHANDLE(varHOBJ)

Defines the variable name that stores the object handle.

Example: MQ CLOSE

This example closes the message queue:

ADDRESS MQ "CLOSE CONHANDLE(hconn) OBJHANDLE(hobj)"