Defining IBM MQ queue managers to the IMS adapter
The names of the IBM MQ queue managers and their corresponding language interface tokens (LITs) must be defined in the queue manager definition table.
Use the supplied CSQQDEFX macro to create the CSQQDEFV load module. Figure 1 shows the syntax of this assembler macro.
- Parameters
- TYPE=ENTRY|DEFAULT
- Specify either TYPE=ENTRY or TYPE=DEFAULT as follows:
- TYPE=ENTRY
- Specifies that a table entry describing an IBM MQ queue manager available to an IMS application is to be generated. If this is the first entry, the table header is also generated, including a CSQQDEFV CSECT statement.
- TYPE=DEFAULT
- As for TYPE=ENTRY. The queue manager specified is the default queue manager to be used when MQCONN or MQCONNX specifies a name that is all blanks. There must be only one such entry in the table.
- NAME= qmgr-name
- Specifies the name of the queue manager, as specified with MQCONN or MQCONNX.
- LIT= token
- Specifies the name of the language interface token (LIT) that IMS uses to identify the queue manager.
An MQCONN or MQCONNX call associates the name input parameter and the hconn output parameter with the name label and, therefore, the LIT in the CSQQDEFV entry. Further IBM MQ calls passing the hconn parameter use the LIT from the CSQQDEFV entry identified in the MQCONN or MQCONNX call to direct calls to the IBM MQ queue manager defined in the IMS SSM PROCLIB member with that same LIT.
In summary, the name parameter on the MQCONN or MQCONNX call identifies a LIT in CSQQDEFV and the same LIT in the SSM member identifies an IBM MQ queue manager. (For information about the MQCONN call, see MQCONN - Connect queue manager. For information about the MQCONNX call, see MQCONNX - Connect queue manager (extended).)
- TYPE=END
- Specifies that the table is complete. If this parameter is omitted, TYPE=ENTRY is assumed.
- Use the CSQQDEFX macro
Figure 2 shows the general layout of a queue manager definition table.