Specifying queues
Use the BBPARM member AAOMQLxx parameters TYPE, QMGR, and QUEUE to specify MQ queues that will become eligible for automation.
A fourth optional parameter, OPEN, indicates how the queue should be processed. All parameters must be typed on one line (abbreviations are available); the syntax is
The following table describes the AAOMQLxx parameters.
Parameter | Description | |
---|---|---|
TYPE( INCL|EXCL) | Specifies whether BMC AMI Ops Automation for MQ should include or exclude this queue in the set of queues that are eligible for automation. This parameter is abbreviated with T. Possible values are:
| |
QMGR(queue-manager-name) | Specifies the four-character ID for a local z/OS queue manager that BMC AMI Ops Automation for MQ will monitor. Abbreviated with M, this parameter supports asterisk (*) and plus (+) wildcard characters. This parameter is required and there is no default value. You must specify a queue manager name or a partial queue manager name with wildcard characters (a plus (+) represents one character, and an asterisk (*) represents one or more characters). | |
QUEUE(queue-name) | Specifies the 48-character name of the queue that BMC AMI Ops Automation for MQ makes eligible for automation. Abbreviated with U, this parameter supports asterisk (*) and plus (+) wildcard characters. This parameter is required and there is no default value. You must specify a queue name or a partial queue name with wildcard characters (a plus (+) represents one character, and an asterisk (*) represents one or more characters). | |
OPEN(option1,option 2) | Gives you control over how the queue is opened and what action to take against the messages in the opened queue. This parameter is abbreviated with O. Possible values for option1 are:
Possible values for option2 are:
|
You can specify multiple sets of these parameters. Continuations are not supported.
Example of specifying queues in AAOMQLxx
BMC recommends that you use the following figure as a model for your specifications.
Example of coding in AAOMQLxx member
* PARAMETER(DEFAULT) VALUES ---------- DESCRIPTION -----------------
*
* TYPE(INCL) TYPE ABBREVIATED WITH 'T'.
* INCL INCLUDE THIS QUEUE FOR RULES (INCL) OR
* ABBREVIATE WITH 'I'.
* EXAMPLE: T(I)
* EXCL EXCLUDE (EXCL) THIS QUEUE FOR RULES.
* ABBREVIATE WITH 'E'.
* EXAMPLE: T(E)
*
* QMGR QMGR ABBREVIATED WITH 'M'.
* NAME OF IBM MQ QUEUE MANAGER. NO
* DEFAULT, THIS PARAMETER MUST BE CODED.
* EXAMPLE: M(CSQ1)
*
* QUEUE QUEUE ABBREVIATED WITH 'U'.
* NAME OF IBM MQ QUEUE. NO DEFAULT,
* THIS PARAMETER MUST BE CODED.
* EXAMPLE: U(SYSTEM.ADMIN.QMGR.EVENT)
*
* OPEN(S,I) OPEN ABBREVIATED WITH 'O'.
* EXCLUSIVE QUEUE OPENED WITH MQOO_INPUT_EXCLUSIVE
* OPTION. ABBREVIATE WITH 'E'.
*
* SHARED QUEUE OPENED WITH MQOO_INPUT_SHARED
* OPTION. ABBREVIATE WITH 'S'. THIS IS
* A DEFAULT OPTION.
*
* PROCESSOLD ROUTE ALL EXISTING MESSAGES FOUND ON
* THE QUEUE AT OPEN TIME THROUGH THE RULE
* PROCESSOR TO ALLOW AUTOMATION TO BE
* PERFORMED ON THEM. ABBREVIATE WITH 'P'.
*
* IGNOREOLD IGNORE (DO NOT PROCESS) ANY EXISTING
* MESSAGES FOUND ON THE QUEUE AT OPEN TIME.
* ABBREVIATE WITH 'I'. THIS IS A DEFAULT
* OPTION.
*
* EXAMPLE 1: OPEN(EXCLUSIVE,PROCESSOLD) OR
* O(E,P) INDICATES THE QUEUE IS TO BE
* OPENED WITH THE MQOO_INPUT_EXCLUSIVE
* OPTION AND ALL EXISTING MESSAGES FOUND ON
* THE QUEUE AT OPEN TIME SHOULD BE ROUTED
* THROUGH THE RULE PROCESSOR FOR
* AUTOMATION.
*
* EXAMPLE 2: OPEN(SHARED,IGNOREOLD) OR
* O(S,I) INDICATES THE QUEUE IS TO BE
* OPENED WITH THE MQOO_INPUT_SHARED OPTION
* AND ALL EXISTING MESSAGES FOUND ON THE
* QUEUE AT OPEN TIME SHOULD BE IGNORED.
*
*----------------------------------------------------------------------
* IBM MQ SYSTEM EVENT QUEUES
*----------------------------------------------------------------------
TYPE(INCL) QMGR(*) QUEUE(SYSTEM.ADMIN.*.EVENT)
*
*----------------------------------------------------------------------
* IBM MQ SYSTEM EVENT'S FROM distributed QUEUE MANAGERS
*----------------------------------------------------------------------
TYPE(INCL) QMGR(*) QUEUE(SYSTEM.DISTRIB.EVENTS)
*
*----------------------------------------------------------------------
* REMAINDER OF QUEUES *DO NOT OPEN*
*----------------------------------------------------------------------
TYPE(EXCL) QMGR(*) QUEUE(*)
For each IBM MQ queue manager, BMC AMI OpsA matches the list of existing queues to the contents of the active AAOMQLxx member. It sequentially scans the AAOMQLxx member and evaluates the QMGR(queue manager name) and QUEUE(queue name) specifications until a match is found.
When a match is found BMC AMI OpsA will either include or exclude the queue based on the TYPE(INCL|EXCL) setting. If two (or more) statements overlap or conflict, the first definition encountered will be used.
Any queue not included in the AAOMQLxx member will not be eligible for automation. If you code a Rule for an excluded queue, the Rule will never fire.
The AAOMQLxx is processed:
- At BBI-SS PAS startup
- When the BBI commands .RESET MQ or .RESET QM are issued
For more information about BBI commands for BMC AMI Ops Automation for MQ, see BMC-AMI-Ops-Automation-for-MQ-BBI-commands.
Related topic