MQCFBS-字节字符串参数
使用本页可查看 MQCFBS 参数的结构以及下列编程语言的声明:C、 COBOL、 PL/I、RPG/ILE 和 S/390 汇编程序
MQCFBS 结构描述字节字符串参数。 在声明的链接之后是构成 MQCFBS 结构的字段的描述:
Type描述: 这指示该结构是描述字节字符串参数的 MQCFBS 结构。 数据类型: MQLONG。 值: - mqcft_byte_string
- 定义字节字符串的结构。
StrucLength描述: 这是 MQCFBS 结构的长度 (以字节为单位) ,包括结构末尾的可变长度字符串 ( String字段)。数据类型: MQLONG。 Parameter描述: 这将使用结构中包含的值来标识参数。 数据类型: MQLONG。 StringLength描述: 这是 String字段中数据的长度 (以字节计) ,且为零或更大。数据类型: MQLONG。 String描述: 这是由 Parameter字段标识的参数的值。 该字符串是字节字符串,因此在不同系统之间发送时不受字符集转换限制。注: 字符串中的空字节被视为正常数据,不充当字符串的定界符。数据类型: MQBYTE x StringLength.
C 语言声明
struct tagMQCFBS {
MQLONG Type; /* Structure type */
MQLONG StrucLength; /* Structure length */
MQLONG Parameter; /* Parameter identifier */
MQLONG StringLength; /* Length of string */
MQBYTE String[1]; /* String value -- first character */
} MQCFBS;
COBOL 语言声明
** MQCFBS structure
10 MQCFBS.
** Structure type
15 MQCFBS-TYPE PIC S9(9) BINARY.
** Structure length
15 MQCFBS-STRUCLENGTH PIC S9(9) BINARY.
** Parameter identifier
15 MQCFBS-PARAMETER PIC S9(9) BINARY.
** Length of string
15 MQCFBS-STRINGLENGTH PIC S9(9) BINARY.
PL/I 语言声明 ( ) z/OS
dcl
1 MQCFBS based,
3 Type fixed bin(31), /* Structure type */
3 StrucLength fixed bin(31), /* Structure length */
3 Parameter fixed bin(31), /* Parameter identifier */
3 StringLength fixed bin(31); /* Length of string */
RPG/ILE 语言声明 (仅限 IBM i )
D*..1....:....2....:....3....:....4....:....5....:....6....:....7..
D* MQCFBS Structure
D*
D* Structure type
D BSTYP 1 4I 0 INZ(9)
D* Structure length
D BSLEN 5 8I 0 INZ(16)
D* Parameter identifier
D BSPRM 9 12I 0 INZ(0)
D* Length of string
D BSSTL 13 16I 0 INZ(0)
D* String value -- first byte
D BSSRA 17 17 INZ
S/390 汇编语言声明 (仅限 z/OS )
MQCFBS DSECT
MQCFBS_TYPE DS F Structure type
MQCFBS_STRUCLENGTH DS F Structure length
MQCFBS_PARAMETER DS F Parameter identifier
MQCFBS_STRINGLENGTH DS F Length of string
*
MQCFBS_LENGTH EQU *-MQCFBS
ORG MQCFBS
MQCFBS_AREA DS CL(MQCFBS_LENGTH)