+

Search Tips | Advanced Search

The queue sharing group utility (CSQ5PQSG) on z/OS®

We can use the CSQ5PQSG utility program to add queue sharing group and queue manager definitions to the IBM MQ Db2® tables, and to remove them.

The CSQ5PQSG utility can also be used to verify the consistency of Db2 object definitions for queue manager, CF structure, and shared queue objects, within a queue sharing group.


Invoking the queue sharing group utility

Figure 1 shows an example of the JCL used to invoke the CSQ5PQSG utility.

Figure 1. Sample JCL to invoke the CSQ5PQSG utility
//S001   EXEC PGM=CSQ5PQSG,REGION=4M,
//     PARM='function,function parameters'
//STEPLIB  DD DSN=thlqual.SCSQANLE,DISP=SHR
//         DD DSN=thlqual.SCSQAUTH,DISP=SHR
//         DD DSN=db2qual.SDSNLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*


Syntax, keywords, and parameters

Queue sharing group utility

PARM=' ADD QMGR,qmgr-name,qsg-name,dsg-name,DB2-ssidADD QSG,qsg-name,dsg-name,DB2-ssidREMOVE QMGR,qmgr-name,qsg-name,dsg-name,DB2-ssidREMOVE QSG,qsg-name,dsg-name,DB2-ssidMIGRATE DSG,dsg-name,DB2-ssidMIGRATE QSG,qsg-name,dsg-name,DB2-ssidFORCE QMGR,qmgr-name,qsg-name,dsg-name,DB2-ssidVERIFY QSG,qsg-name,dsg-name,DB2-ssid '

A queue sharing group name ( qsg-name ) can have up to 4 characters, comprising uppercase A-Z, 0-9, $, #, @. It must not start with a numeric. For implementation reasons, names of less than 4 characters are padded internally with @ symbols, so do not use names ending in @.

The queue sharing group name must be different from any of the queue manager names within the queue sharing group.


Example

The following sample JCL adds an entry for queue manager QM01 into queue sharing group QSG1. It specifies a connection to Db2 subsystem DB2A, which is a member of Db2 data-sharing group DSN510PG.

Figure 2. Using the queue sharing group utility to add a queue manager into a queue-sharing group
//S001   EXEC PGM=CSQ5PQSG,REGION=4M,
//     PARM='ADD QMGR,QM01,QSG1,DSN510PG,DB2A'
//STEPLIB  DD DSN=thlqual.SCSQANLE,DISP=SHR
//         DD DSN=thlqual.SCSQAUTH,DISP=SHR
//         DD DSN=db2qual.SDSNLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*