MQDMHO-删除消息句柄选项

MQDMHO 结构允许应用程序指定用于控制如何删除消息句柄的选项。 该结构是 MQDLTMH 调用上的输入参数。

字符集和编码

MQDMHO 中的数据必须使用应用程序的字符集以及应用程序的编码 ( MQENC_NATIVE )。

字段

注: 在下表中,字段按用法 (而不是按字母顺序) 进行分组。 子主题遵循相同的顺序。
表 1. MQDMHO 中的字段
字段名称和描述 常量的名称 常量的初始值 (如果有)
StrucId (结构标识) MQDMHO_STRUC_ID 'DMHO'
版本 (结构版本号) MQDMHO_VERSION_1 1
选项 (选项) MQDMHO_NONE 0
备注信息:
  1. 在 C 编程语言中,宏变量 MQDMHO_DEFAULT 包含表中列出的值。 它可以通过以下方式用于为结构中的字段提供初始值:
    MQDMHO MyDMHO = {MQDMHO_DEFAULT};
    

语言声明

MQDMHO 的 C 声明

typedef struct tagMQDMHO;
struct tagMQDMHO {
  MQCHAR4   StrucId;         /* Structure identifier */
  MQLONG    Version;         /* Structure version number */
  MQLONG    Options;         /* Options that control the action of MQDLTMH */
};

MQDMHO 的 COBOL 声明

**   MQDMHO structure
  10 MQDMHO.
**    Structure identifier
   15 MQDMHO-STRUCID       PIC X(4).
**    Structure version number
   15 MQDMHO-VERSION       PIC S9(9) BINARY.
**    Options that control the action of MQDLTMH
   15 MQDMHO-OPTIONS       PIC S9(9) BINARY.

MQDMHO 的 PL/I 声明

dcl
 1 MQDMHO based,
  3 StrucId        char(4),       /* Structure identifier */
  3 Version        fixed bin(31), /* Structure version number */
  3 Options        fixed bin(31), /* Options that control the action of MQDLTMH */

MQDMHO 的 High Level Assembler 声明

MQDMHO                DSECT
MQDMHO_STRUCID        DS   CL4   Structure identifier
MQDMHO_VERSION        DS   F     Structure version number
MQDMHO_OPTIONS        DS   F     Options that control the action of
*                                MQDLTMH
MQDMHO_LENGTH         EQU  *-MQDMHO
MQDMHO_AREA           DS   CL(MQDMHO_LENGTH)