Use the MQRR structure

 

These structures are destination specific; each Response Record contains a CompCode and Reason field for each queue of a distribution list. You must use this structure to enable you to distinguish where any problems lie.

For example, if you receive a reason code of MQRC_MULTIPLE_REASONS and your distribution list contains five destination queues, you will not know which queues the problems apply to if you do not use this structure. However, if you have a completion code and reason code for each destination, we can locate the errors more easily.

See the Application Programming Reference for further information about the MQRR structure.

Figure 1 shows how we can open a distribution list in C.

Figure 1. Opening a distribution list in C. The MQOD uses pointers to the MQOR and MQRR structures.

Figure 2 shows how we can open a distribution list in COBOL.

Figure 2. Opening a distribution list in COBOL. The MQOD uses offsets in COBOL.

 

Parent topic:

Opening distribution lists


fg12480_