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

Values shown above the main line in the railroad diagram are the defaults supplied with IBM® MQ, but your installation might have changed them. See How to read railroad diagrams.

DEFINE QMODEL

Read syntax diagramSkip visual syntax diagram DEFINE QMODEL ( q-name ) CMDSCOPE(' ')CMDSCOPE(qmgr-name)1CMDSCOPE(*)12QSGDISP(QMGR)QSGDISP(COPY)1QSGDISP(GROUP)12define attributescommon queue attributeslocal queue attributesmodel queue attr
Define attributes
Read syntax diagramSkip visual syntax diagramLIKE(qmodel-name)NOREPLACEREPLACE
Common queue attributes
Read syntax diagramSkip visual syntax diagramCUSTOM(' ')CUSTOM(string)DEFPRTY(0)DEFPRTY(integer)DEFPRESP(SYNC)DEFPRESP(ASYNC)DEFPSIST(NO)DEFPSIST(YES)DESCR(' ')DESCR(string)PUT(ENABLED)PUT(DISABLED)
Local queue attributes
Read syntax diagramSkip visual syntax diagramACCTQ(QMGR)ACCTQ(ONOFF)BOQNAME(' ')BOQNAME(string)BOTHRESH(0)BOTHRESH(integer)CFSTRUCT(' ')CFSTRUCT(structure-name)2DEFREADA(NO)DEFREADA(YESDISABLED+)DEFSOPT(EXCL)DEFSOPT(SHARED)DISTL(NO)DISTL(YES)3GET(ENABLED)GET(DISABLED)NOHARDENBOHARDENBOINDXTYPE(NONE)INDXTYPE(MSGIDCORRELIDGROUPIDMSGTOKEN)2INITQ(' ')INITQ(string)MAXDEPTH(999 999 999)4MAXDEPTH(5000)5MAXDEPTH(integer)MAXMSGL(4 194 304)MAXMSGL(integer)MONQ(QMGR)MONQ(OFFLOWMEDIUMHIGH)MSGDLVSQ(PRIORITY)MSGDLVSQ(FIFO)NPMCLASS(NORMAL)NPMCLASS(HIGH)3PROCESS(' ')PROCESS(string)PROPCTL(COMPAT)PROPCTL(ALLFORCENONEV6COMPAT)QDEPTHHI(80)QDEPTHHI(integer)QDEPTHLO(40)4QDEPTHLO(20)5QDEPTHLO(integer)QDPHIEV(DISABLED)QDPHIEV(ENABLED)QDPLOEV(DISABLED)QDPLOEV(ENABLED)QDPMAXEV(ENABLED)QDPMAXEV(DISABLED)QSVCIEV(NONE)QSVCIEV(HIGHOK)QSVCINT(999 999 999)QSVCINT(integer)RETINTVL(999 999 999)RETINTVL(integer)NOSHARESHARESTATQ(QMGR)STATQ(OFFON)3STGCLASS('DEFAULT')STGCLASS(string)2TRIGDATA(' ')TRIGDATA(string)TRIGDPTH(1)TRIGDPTH(integer)NOTRIGGERTRIGGERTRIGMPRI(0)TRIGMPRI(integer)TRIGTYPE(FIRST)TRIGTYPE(EVERYDEPTHNONE)USAGE(NORMAL)USAGE(XMITQ)
Model queue attr
Read syntax diagramSkip visual syntax diagramDEFTYPE(TEMPDYN)DEFTYPE(PERMDYN)DEFTYPE(SHAREDYN)2
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 Not valid on z/OS.
  • 4 Default for z/OS.
  • 5 Default for distributed platforms.