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)
  • 1
  • CMDSCOPE(*)1
  • 2QSGDISP(QMGR)QSGDISP(COPY)1
  • QSGDISP(GROUP)1
  • 2define attributes
  • common queue attributes
  • local queue attributes
  • model queue attr
  • Define attributesLIKE(qmodel-name)
  • NOREPLACEREPLACE
  • Common queue attributesCUSTOM(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)
  • NOHARDENBOHARDENBO
  • IMGRCOVQ ( QMGR )IMGRCOVQ(NOYES
  • )
  • 3
  • INDXTYPE(NONE)INDXTYPE(MSGIDCORRELIDGROUPIDMSGTOKEN
  • )
  • 2INITQ(' ')INITQ(string)
  • MAXDEPTH(999 999 999)4
  • MAXDEPTH(5000)5
  • MAXDEPTH(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)4
  • QDEPTHLO(20)5
  • QDEPTHLO(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)
  • NOSHARESHARE
  • STATQ(QMGR)STATQ(OFFON
  • )
  • 3STGCLASS('DEFAULT')STGCLASS(string)
  • 2TRIGDATA(' ')TRIGDATA(string)
  • TRIGDPTH(1)TRIGDPTH(integer)
  • NOTRIGGERTRIGGER
  • TRIGMPRI(0)TRIGMPRI(integer)
  • TRIGTYPE(FIRST)TRIGTYPE(EVERYDEPTHNONE
  • )
  • USAGE(NORMAL)USAGE(XMITQ)
  • Model queue attrDEFTYPE(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 Multiplatforms.