MQRR - Response record
Use the MQRR structure to receive the completion code and reason code resulting from the open or put operation for a single destination queue, when the destination is a distribution list. MQRR is an output structure for the MQOPEN, MQPUT, and MQPUT1 calls.
Availability
- AIX®
- HP-UX
- IBM® i
- Linux®
- Solaris
- Windows
Character set and encoding
Data in MQRR must be in the character set given by the CodedCharSetId queue manager attribute and encoding of the local queue manager given by MQENC_NATIVE. However, if the application is running as an MQ MQI client, the structure must be in the character set and encoding of the client.
Usage
By providing an array of these structures on the MQOPEN and MQPUT calls, or on the MQPUT1 call, you can determine the completion codes and reason codes for all the queues in a distribution list when the outcome of the call is mixed, that is, when the call succeeds for some queues in the list but fails for others. Reason code MQRC_MULTIPLE_REASONS from the call indicates that the response records (if provided by the application) have been set by the queue manager.
Fields
Field name and description | Name of constant | Initial value (if any) of constant |
---|---|---|
CompCode (completion code for queue) | MQCC_OK | 0 |
Reason (reason code for queue) | MQRC_NONE | 0 |
Notes:
|
Language declarations
C declaration for MQRR
typedef struct tagMQRR MQRR;
struct tagMQRR {
MQLONG CompCode; /* Completion code for queue */
MQLONG Reason; /* Reason code for queue */
};
COBOL declaration for MQRR
** MQRR structure
10 MQRR.
** Completion code for queue
15 MQRR-COMPCODE PIC S9(9) BINARY.
** Reason code for queue
15 MQRR-REASON PIC S9(9) BINARY.
PL/I declaration for MQRR
dcl
1 MQRR based,
3 CompCode fixed bin(31), /* Completion code for queue */
3 Reason fixed bin(31); /* Reason code for queue */
Visual Basic declaration for MQRR
Type MQRR
CompCode As Long 'Completion code for queue'
Reason As Long 'Reason code for queue'
End Type