Issuing commands to WebSphere MQ (COMMAND)

Use the COMMAND function to:

  1. Pass commands from an input data set to the queue manager.
  2. Produce a list of DEFINE commands that describe the objects in a queue manager. The commands can be used to keep a record of the object definitions or to regenerate all or part of a queue manager's objects as part of a migration from one queue manager to another.
  3. Produce a list of commands to change or delete a set of objects in a queue manager.
  4. Make a client channel definition file.

The queue manager specified in the PARM parameter of the EXEC statement must be running.

Command management (COMMAND)
Read syntax diagramSkip visual syntax diagram>>-COMMAND-+-----------------+-+----------------------------------------------+-->
           '-DDNAME(ddname1)-' +-MAKEDEF(ddname2)-----------------------------+
                               +-MAKEDEL(ddname2)-----------------------------+
                               '-+-MAKEREP(ddname2)-+-+---------------------+-'
                                 '-MAKEALT(ddname2)-' '-DATA--(--ddname4--)-'

                      .-RESPTIME(30)--.
>--TGTQMGR(qmgrname)--+---------------+------------------------->
                      '-RESPTIME(nnn)-'

>--+------------------------------------+----------------------->
   '-MAKECLNT(ddname3)-+--------------+-'
                       '-CCSID(ccsid)-'

   .-FAILURE(IGNORE)---.
>--+-------------------+---------------------------------------><
   +-FAILURE(CONTINUE)-+
   '-FAILURE(STOP)-----'