Sample script

Sample script prepared using SAVEQMGR
* --------------------------------------------------------------
* System: : MQSeries
* QMgr name : Any
* Version : $Revision$
* --------------------------------------------------------------
* Description : Source to define default MQSeries objects for
*  : MQSeries Version 5.0
* $Header$
* --------------------------------------------------------------
* Date  : 99 May 11
* Author : Bruce Olsen
* Organization : Middleware Resource Center.
* --------------------------------------------------------------
* Modification Record:
* --------------------------------------------------------------
* $Log$
*

********************************************************************/
*       QUEUE MANAGER DEFAULTS                                     */
********************************************************************/
ALTER  QMGR +
       AUTHOREV(DISABLED) +
       DEADQ('SYSTEM.DEAD.LETTER.QUEUE') +
       DEFXMITQ(' ') +
       DESCR(' ') +
       INHIBTEV(DISABLED) +
       LOCALEV(DISABLED) +
       MAXHANDS(256) +
       MAXUMSGS(10000) +
       PERFMEV(DISABLED) +
       REMOTEEV(DISABLED) +
       STRSTPEV(ENABLED) +
       TRIGINT(120000) +
       CHAD(DISABLED) +
       CHADEV(DISABLED) +
       CHADEXIT(' ') +
       FORCE

********************************************************************/
*       DEFAULT ALIAS QUEUE                                        */
*                                                                  */
*   Define the default alias queue.                                */
*     REPLACE allows this command to reset the attributes          */
*     to known values.                                             */
*                                                                  */
*     Note: because it's a default queue, all attributes           */
*     applicable to an alias queue are explicit, and all           */
*     users have READ access.                                      */
*                                                                  */
********************************************************************/
DEFINE QALIAS('SYSTEM.DEFAULT.ALIAS.QUEUE') REPLACE +
*   Queue description
       DESCR(' ') +
*   Put operations allowed
       PUT(ENABLED) +
*   Default priority
       DEFPRTY(0) +
*   Default non-persistent
       DEFPSIST(NO) +
*   Get operations allowed
       GET(ENABLED) +
*   Base queue name
       TARGQ(' ') +
*   Scope
       SCOPE(QMGR)

********************************************************************/
*       DEFAULT LOCAL QUEUE                                        */
*                                                                  */
*   Define the default local queue.                                */
*     REPLACE allows this command to reset the attributes          */
*     to known values.                                             */
*                                                                  */
*     Note: because it's a default queue, all attributes           */
*     applicable to a local queue are explicit, and all            */
*     users have READ access.                                      */
*                                                                  */
********************************************************************/
DEFINE QLOCAL('SYSTEM.DEFAULT.LOCAL.QUEUE') REPLACE +
*   Queue description
       DESCR(' ') +
*   Put operations allowed
       PUT(ENABLED) +
*   Default priority
       DEFPRTY(0) +
*   Default non-persistent
       DEFPSIST(NO) +
*   Get operations allowed
       GET(ENABLED) +

*   Maximum queue depth
       MAXDEPTH(5000) +
*   Maximum message length
       MAXMSGL(4194304) +
*   Shareable
       SHARE +
*   Input open option
       DEFSOPT(SHARED) +
*   Delivery by priority
       MSGDLVSQ(PRIORITY) +
*   Backout not hardened
       NOHARDENBO +
*   Normal queue usage
       USAGE(NORMAL) +

*   Trigger control off
       NOTRIGGER +

*** Next six defaults apply if trigger is made active
*   otherwise trigger on first message
       TRIGTYPE(FIRST) +
*   Trigger on first message - default for queues with TRIGTYPE(DEPTH)
       TRIGDPTH(1) +
*   Trigger on any priority
       TRIGMPRI(0) +
*   Trigger data
       TRIGDATA(' ') +
*   Process name if trigger
       PROCESS(' ') +
*   Initiation queue name
       INITQ(' ') +

*** Other attributes can be tested, but MQM takes no action
*   Retention time (hours)
       RETINTVL(999999999) +
*   Backout threshold
       BOTHRESH(0) +
*   Backout requeue name
       BOQNAME(' ') +
*   Scope
       SCOPE(QMGR) +
*   Queue depth high event threshold
       QDEPTHHI(80) +
*   Queue depth low event threshold
       QDEPTHLO(20) +
*   Queue full event control
       QDPMAXEV(ENABLED) +
*   Queue depth high event control
       QDPHIEV(DISABLED) +
*   Queue depth low event control
       QDPLOEV(DISABLED) +
*   Queue service interval event threshold
       QSVCINT(999999999) +
*   Queue service interval event control
       QSVCIEV(NONE)

********************************************************************/
*       DEFAULT TRANSMISSION QUEUE                                 */
*                                                                  */
*   Define the default transmission queue.                         */
*     REPLACE allows this command to reset the attributes          */
*     to known values.                                             */
*                                                                  */
*     Note: because it's a default queue, all attributes           */
*     applicable to a local queue are explicit, and all            */
*     users have READ access.                                      */
*                                                                  */
********************************************************************/
DEFINE QLOCAL('SYSTEM.DEFAULT.XMIT.QUEUE') REPLACE +
*   Queue description
       DESCR(' ') +
*   Put operations allowed
       PUT(ENABLED) +
*   Default priority
       DEFPRTY(0) +
*   Default non-persistent
       DEFPSIST(NO) +
*   Get operations allowed
       GET(ENABLED) +

*   Maximum queue depth
       MAXDEPTH(5000) +
*   Maximum message length
       MAXMSGL(4194304) +
*   Shareable
       SHARE +
*   Input open option
       DEFSOPT(SHARED) +
*   Delivery by priority
       MSGDLVSQ(PRIORITY) +
*   Backout not hardened
       NOHARDENBO +
*   Normal queue usage
       USAGE(XMITQ) +

*   Trigger control on
       TRIGGER +

*** Next six defaults apply if trigger is made active
*   otherwise trigger on first message
       TRIGTYPE(FIRST) +
*   Trigger on first message - default for queues with TRIGTYPE(DEPTH)
       TRIGDPTH(1) +
*   Trigger on any priority
       TRIGMPRI(0) +
*   Trigger data
       TRIGDATA(' ') +
*   Process name if trigger
       PROCESS(' ') +
*   Initiation queue name
       INITQ('SYSTEM.CHANNEL.INIT.QUEUE') +

*** Other attributes can be tested, but MQM takes no action
*   Retention time (hours)
       RETINTVL(999999999) +
*   Backout threshold
       BOTHRESH(0) +
*   Backout requeue name
       BOQNAME(' ') +
*   Scope
       SCOPE(QMGR) +
*   Queue depth high event threshold
       QDEPTHHI(80) +
*   Queue depth low event threshold
       QDEPTHLO(20) +
*   Queue full event control
       QDPMAXEV(ENABLED) +
*   Queue depth high event control
       QDPHIEV(DISABLED) +
*   Queue depth low event control
       QDPLOEV(DISABLED) +
*   Queue service interval event threshold
       QSVCINT(999999999) +
*   Queue service interval event control
       QSVCIEV(NONE)

********************************************************************/
*       DEFAULT MODEL QUEUE                                        */
*                                                                  */
*   Define the default model queue.                                */
*     REPLACE allows this command to reset the attributes          */
*     to known values.                                             */
*                                                                  */
*     Note: because it's a default queue, all attributes           */
*     applicable to a model queue are explicit, and all            */
*     users have READ access.                                      */
*                                                                  */
********************************************************************/
DEFINE QMODEL('SYSTEM.DEFAULT.MODEL.QUEUE') REPLACE +
*   Queue description
       DESCR(' ') +
*   Put operations allowed
       PUT(ENABLED) +
*   Default priority
       DEFPRTY(0) +
*   Default non-persistent
       DEFPSIST(NO) +
*   Get operations allowed
       GET(ENABLED) +

*   Maximum queue depth
       MAXDEPTH(5000) +
*   Maximum message length
       MAXMSGL(4194304) +
*   Not shareable
       NOSHARE +
*   Input open option
       DEFSOPT(EXCL) +
*   Delivery by priority
       MSGDLVSQ(PRIORITY) +
*   Backout not hardened
       NOHARDENBO +
*   Normal queue usage
       USAGE(NORMAL) +
*   Temporary dynamic queue created when model is opened
       DEFTYPE(TEMPDYN) +

*   Trigger control off
       NOTRIGGER +

*** Next six defaults apply if trigger is made active
*   Trigger on first message
       TRIGTYPE(FIRST) +
*   Trigger on first message for TRIGTYPE(DEPTH) too
       TRIGDPTH(1) +
*   Trigger on any priority
       TRIGMPRI(0) +
*   Trigger data
       TRIGDATA(' ') +
*   Process name if trigger
       PROCESS(' ') +
*   Initiation queue name
       INITQ(' ') +

*** Other attributes can be tested, but MQM takes no action
*   Retention time (hours)
       RETINTVL(999999999) +
*   Backout threshold
       BOTHRESH(0) +
*   Backout requeue name
       BOQNAME(' ') +
*   Queue depth high event threshold
       QDEPTHHI(80) +
*   Queue depth low event threshold
       QDEPTHLO(20) +
*   Queue full event control
       QDPMAXEV(ENABLED) +
*   Queue depth high event control
       QDPHIEV(DISABLED) +
*   Queue depth low event control
       QDPLOEV(DISABLED) +
*   Queue service interval event threshold
       QSVCINT(999999999) +
*   Queue service interval event control
       QSVCIEV(NONE)

********************************************************************/
*       DEFAULT REMOTE QUEUE                                       */
*                                                                  */
*   Create the default remote queue.                               */
*     REPLACE allows this command to reset the attributes          */
*     to known values.                                             */
*                                                                  */
*     Note: because it's a default queue, all attributes           */
*     applicable to a remote queue are explicit, and all           */
*     users have READ access.                                      */
*                                                                  */
********************************************************************/
DEFINE QREMOTE('SYSTEM.DEFAULT.REMOTE.QUEUE') REPLACE +
*   Queue description
       DESCR(' ') +
*   Put operations allowed
       PUT(ENABLED) +
*   Default priority
       DEFPRTY(0) +
*   Default non-persistent
       DEFPSIST(NO) +
*   No transmission queue
       XMITQ(' ') +
*   Queue name
       RNAME(' ') +
*   Name of remote queue manager
       RQMNAME(' ') +
*   Scope
       SCOPE(QMGR)

********************************************************************/
*       DEFAULT MQI PROCESS OBJECT                                 */
*                                                                  */
*   Create the default MQI process object                          */
*     REPLACE allows this command to reset the attributes          */
*     to known values.                                             */
*                                                                  */
*     Note: Because it's a default object, all attributes          */
*     applicable to a process object are explicit, and all         */
*     users have READ access.                                      */
*                                                                  */
********************************************************************/
DEFINE PROCESS('SYSTEM.DEFAULT.PROCESS')   REPLACE +
*   Object description
        DESCR(' ') +
*   Application type (non-specific)
        APPLTYPE(DEF) +
*   Application identifier
        APPLICID(' ') +
*   User data
        USERDATA(' ') +
*   Environment data
        ENVRDATA(' ')

********************************************************************/
*       DEFAULT CHANNEL DEFINITIONS                                */
*                                                                  */
*   Create the defaults for each of the channel types              */
*     REPLACE allows this command to reset the attributes          */
*     to known values.                                             */
*                                                                  */
********************************************************************/

*** Defaults for a sender channel
DEFINE CHANNEL(SYSTEM.DEF.SENDER) CHLTYPE(SDR) +
        TRPTYPE(TCP) REPLACE DESCR(' ') +
     HBINT(300) NPMSPEED(NORMAL) +
        BATCHSZ(50) DISCINT(300) +
        SHORTTMR(60) SHORTRTY(10) +
        LONGTMR(1200) LONGRTY(999999999) +
        SEQWRAP(999999999) MAXMSGL(4194304) +
        CONVERT(NO) XMITQ(' ') CONNAME(' ')

*** Defaults for a server channel
DEFINE CHANNEL(SYSTEM.DEF.SERVER) CHLTYPE(SVR) +
        TRPTYPE(TCP) REPLACE DESCR(' ') +
     HBINT(300) NPMSPEED(NORMAL) +
        BATCHSZ(50) DISCINT(300) +
        SHORTTMR(60) SHORTRTY(10) +
        LONGTMR(1200) LONGRTY(999999999) +
        SEQWRAP(999999999) MAXMSGL(4194304) +
        CONVERT(NO) XMITQ(' ')

*** Defaults for a receiver channel
DEFINE CHANNEL(SYSTEM.DEF.RECEIVER) CHLTYPE(RCVR) +
        TRPTYPE(TCP) REPLACE DESCR(' ') +
     HBINT(300) NPMSPEED(NORMAL) +
        BATCHSZ(50) +
        PUTAUT(CTX) SEQWRAP(999999999) +
        MAXMSGL(4194304)

*** Defaults for a requester channel
DEFINE CHANNEL(SYSTEM.DEF.REQUESTER) +
        CHLTYPE(RQSTR) TRPTYPE(TCP) +
        REPLACE DESCR(' ') +
     HBINT(300) NPMSPEED(NORMAL) +
        BATCHSZ(50) PUTAUT(CTX) +
        SEQWRAP(999999999) MAXMSGL(4194304) +
        CONNAME(' ')

*** Defaults for a svrconn channel
DEFINE CHANNEL(SYSTEM.DEF.SVRCONN) CHLTYPE(SVRCONN) +
        TRPTYPE(TCP) REPLACE DESCR(' ') +
        MCAUSER('nobody') +
        MAXMSGL(4194304)

*** Defaults for a clntconn channel
DEFINE CHANNEL(SYSTEM.DEF.CLNTCONN) CHLTYPE(CLNTCONN) +
        REPLACE DESCR(' ') TRPTYPE(TCP) +
        MAXMSGL(4194304) CONNAME(' ') QMNAME(' ')

********************************************************************/
*       DEFAULT CHANNEL QUEUES                                     */
*                                                                  */
*   Create the queue definitions used by the Channels              */
*                                                                  */
********************************************************************/
DEFINE QLOCAL('SYSTEM.CHANNEL.INITQ') REPLACE +
        DESCR('MQM Channel initiation queue') +

*   Put operations allowed
        PUT(ENABLED) +
*   Get operations allowed
        GET(ENABLED) +
*   Default non-persistent
        DEFPSIST(NO) +
*   Maximum queue depth
        MAXDEPTH(1000) +
*   Maximum message length
        MAXMSGL(2000) +
*   Not shareable
        NOSHARE +
*   Input open option
        DEFSOPT(EXCL) +
*   Normal queue usage
        USAGE(NORMAL) +
*   No trigger messages
        TRIGTYPE(NONE)

********************************************************************/
*       DEFAULT INITIATION QUEUES                                  */
*                                                                  */
*   Create the initiation queue definitions used as defaults       */
*   by the supplied trigger monitors                               */
*                                                                  */
********************************************************************/
DEFINE QLOCAL('SYSTEM.DEFAULT.INITIATION.QUEUE') REPLACE +
        DESCR('MQSeries Default initiation queue') +

*   Put operations allowed
        PUT(ENABLED) +
*   Get operations allowed
        GET(ENABLED) +
*   Default non-persistent
        DEFPSIST(NO) +
*   Maximum queue depth
        MAXDEPTH(1000) +
*   Maximum length = size of trigger message
        MAXMSGL(1000) +
*   Shareable
        SHARE +
*   Input open option
        DEFSOPT(SHARED) +
*   Normal queue usage
        USAGE(NORMAL) +
*   No trigger messages
        TRIGTYPE(NONE)

DEFINE QLOCAL('SYSTEM.CICS.INITIATION.QUEUE') REPLACE +
        DESCR('MQSeries Default CICS initiation queue') +

*   Put operations allowed
        PUT(ENABLED) +
*   Get operations allowed
        GET(ENABLED) +
*   Default non-persistent
        DEFPSIST(NO) +
*   Maximum queue depth
        MAXDEPTH(1000) +
*   Maximum length = size of trigger message
        MAXMSGL(1000) +
*   Shareable
        SHARE +
*   Input open option
        DEFSOPT(SHARED) +
*   Normal queue usage
        USAGE(NORMAL) +
*   No trigger messages
        TRIGTYPE(NONE)

********************************************************************/
*       SYSTEM.ADMIN.COMMAND.QUEUE                                 */
*                                                                  */
*   Create the system-defined queue through which requests         */
*   are sent to the Queue Manager                                  */
*                                                                  */
********************************************************************/
DEFINE QLOCAL('SYSTEM.ADMIN.COMMAND.QUEUE') REPLACE +
        DESCR('MQM administration command queue') +

*   Default non-persistent
        DEFPSIST(NO) +
*   Maximum queue depth
        MAXDEPTH(3000) +
*   Maximum message length
        MAXMSGL(9000) +
*   Not shareable
        NOSHARE +
*   Input open option
        DEFSOPT(EXCL) +
*   Normal queue usage
        USAGE(NORMAL) +
*   No trigger messages
        TRIGTYPE(NONE)

********************************************************************/
*       SYSTEM.MQSC.REPLY.QUEUE                                    */
*                                                                  */
*   Create reply queue for MQSC - can be LOCAL or MODEL            */
*                                                                  */
********************************************************************/
DEFINE QMODEL('SYSTEM.MQSC.REPLY.QUEUE') REPLACE +
        DESCR('MQSC reply queue') +

*   Temporary dynamic queue created from this model
        DEFTYPE(TEMPDYN) +
*   Default non-persistent
        DEFPSIST(NO) +
*   Maximum queue depth
        MAXDEPTH(3000) +
*   Maximum message length
        MAXMSGL(9000) +
*   Not shareable
        NOSHARE +
*   Input open option
        DEFSOPT(EXCL) +
*   Normal queue usage
        USAGE(NORMAL) +
*   No trigger messages
        TRIGTYPE(NONE)
 

********************************************************************/
*       SYSTEM.ADMIN.QMGR.EVENT                                    */
*                                                                  */
*   Create the system-defined queue through which Queue Manager    */
*   related Events are reported.                                   */
*                                                                  */
********************************************************************/
DEFINE QLOCAL('SYSTEM.ADMIN.QMGR.EVENT') REPLACE +
        DESCR('MQM Queue Manager related Event Queue') +

*   Default non-persistent
        DEFPSIST(NO) +
*   Maximum queue depth
        MAXDEPTH(3000) +
*   Maximum message length
        MAXMSGL(9000) +
*   Not shareable
        NOSHARE +
*   Input open option
        DEFSOPT(EXCL) +
*   Normal queue usage
        USAGE(NORMAL) +
*   No trigger messages
        TRIGTYPE(NONE)

********************************************************************/
*       SYSTEM.ADMIN.PERFM.EVENT                                   */
*                                                                  */
*   Create the system-defined queue through which performance      */
*   related events are reported.                                   */
*                                                                  */
********************************************************************/
DEFINE QLOCAL('SYSTEM.ADMIN.PERFM.EVENT') REPLACE +
        DESCR('MQM performance related event Queue') +

*   Default non-persistent
        DEFPSIST(NO) +
*   Maximum queue depth
        MAXDEPTH(3000) +
*   Maximum message length
        MAXMSGL(9000) +
*   Not shareable
        NOSHARE +
*   Input open option
        DEFSOPT(EXCL) +
*   Normal queue usage
        USAGE(NORMAL) +
*   No trigger messages
        TRIGTYPE(NONE)

********************************************************************/
*       SYSTEM.ADMIN.CHANNEL.EVENT                                 */
*                                                                  */
*   Create the system-defined queue through which Channel          */
*   related Events are reported.                                   */
*                                                                  */
********************************************************************/
DEFINE QLOCAL('SYSTEM.ADMIN.CHANNEL.EVENT') REPLACE +
        DESCR('MQM Channel related Event Queue') +

*   Default non-persistent
        DEFPSIST(NO) +
*   Maximum queue depth
        MAXDEPTH(3000) +
*   Maximum message length
        MAXMSGL(9000) +
*   Not shareable
        NOSHARE +
*   Input open option
        DEFSOPT(EXCL) +
*   Normal queue usage
        USAGE(NORMAL) +
*   No trigger messages
        TRIGTYPE(NONE)

********************************************************************/
*       DEFAULT DEAD QUEUE                                         */
*                                                                  */
*   Create a default local dead letter queue.                      */
*                                                                  */
*                                                                  */
********************************************************************/
DEFINE QLOCAL('SYSTEM.DEAD.LETTER.QUEUE') REPLACE +

*   Queue description
       DESCR('MQSeries default dead queue') +
*   Default non-persistent
       DEFPSIST(NO) +
*   Maximum queue depth
       MAXDEPTH(640000) +
*   Maximum message length
       MAXMSGL(4194304) +
*   Shareable
       SHARE +
*   Input open option
       DEFSOPT(SHARED) +
*   Normal queue usage
       USAGE(NORMAL) +
*   No trigger messages
       TRIGTYPE(NONE)

********************************************************************/
*       DEFAULT CHANNEL DEFINITIONS                                */
*                                                                  */
*   Create the defaults for each of the channel types              */
*     REPLACE allows this command to reset the attributes          */
*     to known values.                                             */
*                                                                  */
********************************************************************/

*** Defaults for an auto receiver channel
DEFINE CHANNEL ('SYSTEM.AUTO.RECEIVER') CHLTYPE(RCVR) +
       TRPTYPE(TCP) +
       DESCR('Auto-defined by') +
       MAXMSGL(4194304) +
       BATCHSZ(50) +
       SEQWRAP(999999999) +
       HBINT(300) +
       NPMSPEED(FAST) +
       MCAUSER(' ') +
       PUTAUT(CTX) +
       MRRTY(10) +
       MRTMR(1000) +
       REPLACE

*** Defaults for an auto Server Connection
DEFINE CHANNEL ('SYSTEM.AUTO.SVRCONN') CHLTYPE(SVRCONN) +
       TRPTYPE(TCP) +
       DESCR('Auto-defined by') +
       REPLACE  

 


Copyright © 1999-2001, Middleware Resource Center. All rights reserved.