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 2 QSGDISP(QMGR) QSGDISP(COPY) 1 QSGDISP(GROUP) 1 2 define attributes common queue attributes local queue attributes model queue attr Define attributesLIKE ( qmodel-name ) NOREPLACE REPLACE Common queue attributesCUSTOM ( string CAPEXPRY ( NOLIMIT integer ) ) DEFPRTY(0) DEFPRTY ( integer ) DEFPRESP(SYNC) DEFPRESP(ASYNC) DEFPSIST(NO) DEFPSIST(YES) DESCR(' ') DESCR ( string ) PUT(ENABLED) PUT(DISABLED) Local queue attributesACCTQ(QMGR) ACCTQ ( ON OFF ) BOQNAME(' ') BOQNAME ( string ) BOTHRESH(0) BOTHRESH ( integer ) CFSTRUCT(' ') CFSTRUCT ( structure-name ) 2 DEFREADA(NO) DEFREADA ( YES DISABLED+ ) DEFSOPT(EXCL) DEFSOPT(SHARED) DISTL(NO) DISTL(YES) 3 GET(ENABLED) GET(DISABLED) NOHARDENBO HARDENBO IMGRCOVQ ( QMGR ) IMGRCOVQ ( NO YES ) 3 INDXTYPE(NONE) INDXTYPE ( MSGID CORRELID GROUPID MSGTOKEN ) 2 INITQ(' ') INITQ ( string ) MAXDEPTH(999 999 999) 4 MAXDEPTH(5000) 5 MAXDEPTH ( integer ) MAXMSGL(4 194 304) MAXMSGL ( integer ) MONQ(QMGR) MONQ ( OFF LOW MEDIUM HIGH ) MSGDLVSQ(PRIORITY) MSGDLVSQ(FIFO) NPMCLASS(NORMAL) NPMCLASS(HIGH) 3 PROCESS(' ') PROCESS ( string ) PROPCTL(COMPAT) PROPCTL ( ALL FORCE NONE V6COMPAT ) 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 ( HIGH OK ) QSVCINT(999 999 999) QSVCINT ( integer ) RETINTVL(999 999 999) RETINTVL ( integer ) NOSHARE SHARE STATQ(QMGR) STATQ ( OFF ON ) 3 STGCLASS('DEFAULT') STGCLASS ( string ) 2 TRIGDATA(' ') TRIGDATA ( string ) TRIGDPTH(1) TRIGDPTH ( integer ) NOTRIGGER TRIGGER TRIGMPRI(0) TRIGMPRI ( integer ) TRIGTYPE(FIRST) TRIGTYPE ( EVERY DEPTH NONE ) 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.