DEFINE QMODEL

Use DEFINE QMODEL to define a new model queue, and set its parameters.

A model queue is not a real queue, but a collection of attributes that you can use when creating dynamic queues with the MQOPEN API call.

When it has been defined, a model queue (like any other queue) has a complete set of applicable attributes, even if some of these are defaults.

Synonym: DEF QM

Read syntax diagramSkip visual syntax diagramDEFINE QMODEL

                          .-CMDSCOPE(' ')------------. (2)
>>-DEFINE QMODEL(q-name)--+--------------------------+---------->
                          |                     (1)  |
                          +-CMDSCOPE(qmgr-name)------+
                          |             (1)          |
                          '-CMDSCOPE(*)--------------'

   .-QSGDISP(QMGR)-------. (2)
>--+---------------------+-------+------------------+----------->
   |               (1)   |       '-| define attrs |-'
   +-QSGDISP(COPY)-------+
   |                (1)  |
   '-QSGDISP(GROUP)------'

>--+--------------------+--+-------------------+---------------->
   '-| common q attrs |-'  '-| local q attrs |-'

>--+------------------+----------------------------------------><
   '-| model q attr |-'

Define attrs:

                          .-NOREPLACE-.
|--+-------------------+--+-----------+-------------------------|
   '-LIKE(qmodel-name)-'  '-REPLACE---'

Common q attrs:

                (3)                     (3)
   .-DEFPRTY(0)-------.  .-DEFPSIST(NO)------.
|--+------------------+--+-------------------+------------------>
   '-DEFPRTY(integer)-'  '-DEFPSIST(YES)-----'

                (3)                    (3)
   .-DESCR(' ')------.  .-PUT(ENABLED)------.
>--+-----------------+--+-------------------+-------------------|
   '-DESCR(string)---'  '-PUT(DISABLED)-----'

Local q attrs:

                 (3)                    (3)
   .-ACCTQ(QMGR)------.  .-BOQNAME(' ')------.
|--+------------------+--+-------------------+------------------>
   '-ACCTQ(-+-ON--+-)-'  '-BOQNAME(string)---'
            '-OFF-'

                 (3)                      (2)
   .-BOTHRESH(0)-------.  .-CFSTRUCT(' ')-----------------.
>--+-------------------+--+-------------------------------+----->
   '-BOTHRESH(integer)-'  |                          (2)  |
                          '-CFSTRUCT(structure-name)------'

                   (3)                 (3)
   .-DEFSOPT(EXCL)------.  .-DISTL(NO)------. (4)
>--+--------------------+--+----------------+------------------->
   '-DEFSOPT(SHARED)----'  '-DISTL(YES)-----'

                  (3)                  (3)
   .-GET(ENABLED)------.  .-NOHARDENBO------.
>--+-------------------+--+-----------------+------------------->
   '-GET(DISABLED)-----'  '-HARDENBO--------'

                    (3)                            (3)
   .-INDXTYPE(NONE)-----------. (2)   .-INITQ(' ')------.
>--+--------------------------+-------+-----------------+------->
   '-INDXTYPE(-+-MSGID----+-)-'       '-INITQ(string)---'
               +-CORRELID-+
               +-GROUPID--+
               '-MSGTOKEN-'

                    (5)                          (3)
   .-MAXDEPTH(5000)------.  .-MAXMSGL(4 194 304)------.
>--+---------------------+--+-------------------------+--------->
   '-MAXDEPTH(integer)---'  '-MAXMSGL(integer)--------'

                (3)                             (3)
   .-MONQ(QMGR)---------.  .-MSGDLVSQ(PRIORITY)------.
>--+--------------------+--+-------------------------+---------->
   '-MONQ(-+-OFF----+-)-'  '-MSGDLVSQ(FIFO)----------'
           +-LOW----+
           +-MEDIUM-+
           '-HIGH---'

                      (3)                         (3)
   .-NPMCLASS(NORMAL)------. (6)   .-PROCESS(' ')------.
>--+-----------------------+-------+-------------------+-------->
   '-NPMCLASS(HIGH)--------'       '-PROCESS(string)---'

                  (3)                    (7)
   .-QDEPTHHI(80)------.  .-QDEPTHLO(40)------.
>--+-------------------+--+-------------------+----------------->
   '-QDEPTHHI(integer)-'  '-QDEPTHLO(integer)-'

                       (3)                         (3)
   .-QDPHIEV(DISABLED)------.  .-QDPLOEV(DISABLED)------.
>--+------------------------+--+------------------------+------->
   '-QDPHIEV(ENABLED)-------'  '-QDPLOEV(ENABLED)-------'

                       (3)                     (3)
   .-QDPMAXEV(ENABLED)------.  .-QSVCIEV(NONE)-------.
>--+------------------------+--+---------------------+---------->
   '-QDPMAXEV(DISABLED)-----'  '-QSVCIEV(-+-HIGH-+-)-'
                                          '-OK---'

                          (3)
   .-QSVCINT(999 999 999)------.
>--+---------------------------+-------------------------------->
   '-QSVCINT(integer)----------'

                           (3)               (3)
   .-RETINTVL(999 999 999)------.  .-NOSHARE------.
>--+----------------------------+--+--------------+------------->
   '-RETINTVL(integer)----------'  '-SHARE--------'

                 (3)
   .-STATQ(QMGR)------. (8)
>--+------------------+----------------------------------------->
   '-STATQ(-+-OFF-+-)-'
            '-ON--'

                         (3)                          (3)
   .-STGCLASS('DEFAULT')------. (2)   .-TRIGDATA(' ')------.
>--+--------------------------+-------+--------------------+---->
   '-STGCLASS(string)---------'       '-TRIGDATA(string)---'

                 (3)                  (3)
   .-TRIGDPTH(1)-------.  .-NOTRIGGER------.
>--+-------------------+--+----------------+-------------------->
   '-TRIGDPTH(integer)-'  '-TRIGGER--------'

                 (3)                        (3)
   .-TRIGMPRI(0)-------.  .-TRIGTYPE(FIRST)-------.
>--+-------------------+--+-----------------------+------------->
   '-TRIGMPRI(integer)-'  '-TRIGTYPE(-+-EVERY-+-)-'
                                      +-DEPTH-+
                                      '-NONE--'

                   (3)
   .-USAGE(NORMAL)------.
>--+--------------------+---------------------------------------|
   '-USAGE(XMITQ)-------'

Model q attr:

                      (3)
   .-DEFTYPE(TEMPDYN)-------.
|--+------------------------+-----------------------------------|
   +-DEFTYPE(PERMDYN)-------+
   |                   (2)  |
   '-DEFTYPE(SHAREDYN)------'

Notes:
  1. Valid only on z/OS when the queue manager is a member of a queue-sharing group.
  2. Used only on z/OS.
  3. This is the default supplied with WebSphere MQ, but your installation might have changed it.
  4. Valid only on AIX, HP OpenVMS, HP-UX, Linux, i5/OS, Solaris, and Windows.
  5. This is the default supplied with WebSphere MQ (except on z/OS, where it is 999 999 999), but your installation might have changed it.
  6. Not valid on z/OS.
  7. This is the default supplied with WebSphere MQ (except on platforms other than z/OS where it is 20), but your installation might have changed it.
  8. Valid only on i5/OS, UNIX systems, and Windows.