Subscribing to the Event Listener
If another process is running the BMC Integrated Event Listener, MainView for MQ can subscribe to the Event Listener.
The messages are nonpersistent but do not have an expiration time.
To subscribe to the Event Listener for MVS queue managers
Use either of the following methods:
- Specify Yes in the Event PUB/SUB field in the Add Queue Manager Profile (MVS) panel for the queue manager profile. For more information, see Managing-queue-manager-profiles
- Use the batch job that is shown in the Integrated Event Listener subscription batch job.
If the systems for which you are monitoring events have changed, use the batch job shown in the Integrated Event Listener subscription batch job to add new monitoring system publish queues (PUBQs) or remove unwanted PUBQs. You can run the batch subscription job to add or delete a subscription against any active or inactive Event Listener. This JCL is provided in hlq.BBSAMP(#MMAELSC).
Integrated Event Listener subscription batch job
// NOTIFY=USERID,MSGCLASS=R
//*
//*---------------------------------------------------------------
//* MMA EVENT LISTENER SUBSCRIBER
//*---------------------------------------------------------------
//* #1 - CHANGE BMCNODE TO YOUR HIGH-LEVEL NAMING CONVENTION
//* #2 - CHANGE hlq TO YOUR HIGH-LEVEL NAMING CONVENTION
//* FOR THE SPECIFIED DATA SET
//* #3 - CHANGE XXXX TO YOUR ACCOUNT NUMBER
//* OR REMOVE IT IF NOT NEEDED
//*--------------- JOB PARMS -----------------------
//* #4 - CHANGE yyyy TO selected qmgr name
//* #5 - CHANGE ZZZ TO 'ADD' OR 'DELETE'
//* #6 - CHANGE WWWW TO PUBLISH QUEUE NAME. 48 BYTE MAX
//*-------------------------------------------------------------
//* PARMS: QMGR=, QMGR NAME - 4 BYTE MAX. REQUIRED *
//* PUBQ=, PUBLISH QUEUE NAME - 48 BYTE MAX. REQUIRED *
//* ACTION=, ADD/DELETE SUBSCRIPTION. REQUIRED *
//*---------------------------------------------------------------
//MMAELSC EXEC PGM=MMAELSC0,
// PARM='QMGR=yyyy,ACTION=ZZZ,PUBQ=WWWW'
//*
//STEPLIB DD DISP=SHR,DSN=BMCNODE.MMA.LOAD
// DD DISP=SHR,DSN=hlq.SCSQAUTH
// DD DISP=SHR,DSN=hlq.SCSQLOAD
//*
//SYSPRINT DD SYSOUT=*
//*