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 we 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 Syntax diagrams.


DEFINE QMODEL

DEFINE QMODEL ( q-name ) CMDSCOPE(' ')CMDSCOPE(qmgr-name)1CMDSCOPE(*)12QSGDISP(QMGR)QSGDISP(COPY)1QSGDISP(GROUP)12define attributescommon queue attributeslocal queue attributesmodel queue attrDefine attributesLIKE(qmodel-name)NOREPLACEREPLACECommon queue attributesCUSTOM(' ')CUSTOM(stringCAPEXPRY(NOLIMITinteger))DEFPRTY(0)DEFPRTY(integer)DEFPRESP(SYNC)DEFPRESP(ASYNC)DEFPSIST(NO)DEFPSIST(YES)DESCR(' ')DESCR(string)PUT(ENABLED)PUT(DISABLED)Local queue attributesACCTQ(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)NOHARDENBOHARDENBOIMGRCOVQ ( QMGR )IMGRCOVQ(NOYES)3INDXTYPE(NONE)INDXTYPE(MSGIDCORRELIDGROUPIDMSGTOKEN)2INITQ(' ')INITQ(string)MAXDEPTH(999 999 999)4MAXDEPTH(5000)5MAXDEPTH(integer)MAXFSIZE(2 088 960)MAXFSIZE(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 attrDEFTYPE(TEMPDYN)DEFTYPE(PERMDYN)DEFTYPE(SHAREDYN)2Notes:

  • 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 Multiplatforms.

Parent topic: DEFINE queues


Related information