MQXP - Exit parameter block
The MQXP structure is used as an input/output parameter to the API-crossing
exit.
For more information about this exit, see The API-crossing exit.
Character set and encoding
Character data in MQXP is in the character set of the local queue manager; this is given by the CodedCharSetId queue manager attribute. Numeric data in MQXP is in the native machine encoding; this is given by MQENC_NATIVE.
Fields
Note: In the following table, the fields are grouped by usage rather than alphabetically. The child
topics follow the same sequence.
| Field name and description | Name of constant |
|---|---|
| StrucId (structure identifier) | MQXP_STRUC_ID |
| Version (structure version number) | MQXP_VERSION_1 |
| ExitId (exit identifier) | MQXT_API_CROSSING_EXIT |
| ExitReason (reason for invocation of exit) | None |
| ExitResponse (response from exit) | None |
| ExitCommand (API call code) | None |
| ExitParmCount (parameter count) | None |
| Reserved (reserved) | None |
| ExitUserArea (user area) | None |
Language declarations
C declaration for MQXP
typedef struct tagMQXP MQXP;
struct tagMQXP {
MQCHAR4 StrucId; /* Structure identifier */
MQLONG Version; /* Structure version number */
MQLONG ExitId; /* Exit identifier */
MQLONG ExitReason; /* Reason for invocation of exit */
MQLONG ExitResponse; /* Response from exit */
MQLONG ExitCommand; /* API call code */
MQLONG ExitParmCount; /* Parameter count */
MQLONG Reserved; /* Reserved */
MQBYTE16 ExitUserArea; /* User area */
};
COBOL declaration for MQXP
** MQXP structure
10 MQXP.
** Structure identifier
15 MQXP-STRUCID PIC X(4).
** Structure version number
15 MQXP-VERSION PIC S9(9) BINARY.
** Exit identifier
15 MQXP-EXITID PIC S9(9) BINARY.
** Reason for invocation of exit
15 MQXP-EXITREASON PIC S9(9) BINARY.
** Response from exit
15 MQXP-EXITRESPONSE PIC S9(9) BINARY.
** API call code
15 MQXP-EXITCOMMAND PIC S9(9) BINARY.
** Parameter count
15 MQXP-EXITPARMCOUNT PIC S9(9) BINARY.
** Reserved
15 MQXP-RESERVED PIC S9(9) BINARY.
** User area
15 MQXP-EXITUSERAREA PIC X(16).
PL/I declaration for MQXP
dcl
1 MQXP based,
3 StrucId char(4), /* Structure identifier */
3 Version fixed bin(31), /* Structure version number */
3 ExitId fixed bin(31), /* Exit identifier */
3 ExitReason fixed bin(31), /* Reason for invocation of exit */
3 ExitResponse fixed bin(31), /* Response from exit */
3 ExitCommand fixed bin(31), /* API call code */
3 ExitParmCount fixed bin(31), /* Parameter count */
3 Reserved fixed bin(31), /* Reserved */
3 ExitUserArea char(16); /* User area */
High Level Assembler declaration for MQXP
MQXP DSECT
MQXP_STRUCID DS CL4 Structure identifier
MQXP_VERSION DS F Structure version number
MQXP_EXITID DS F Exit identifier
MQXP_EXITREASON DS F Reason for invocation of exit
MQXP_EXITRESPONSE DS F Response from exit
MQXP_EXITCOMMAND DS F API call code
MQXP_EXITPARMCOUNT DS F Parameter count
MQXP_RESERVED DS F Reserved
MQXP_EXITUSERAREA DS XL16 User area
*
MQXP_LENGTH EQU *-MQXP
ORG MQXP
MQXP_AREA DS CL(MQXP_LENGTH)