MQEPH - Embedded PCF header
The MQEPH structure describes the additional data that is present in a message when that
message is a programmable command format (PCF) message. The
PCFHeader
field defines the PCF parameters that follow this
structure and this allows you to follow the PCF message data with other headers.
Format name
MQFMT_EMBEDDED_PCF
Character set and encoding
Data in MQEPH must be in the character set given by the CodedCharSetId queue manager attribute and encoding of the local queue manager given by MQENC_NATIVE.
Set the character set and encoding of the MQEPH into the
CodedCharSetId
and Encoding
fields in the MQMD (if the MQEPH structure is at the start of the message data), or the header
structure that precedes the MQEPH structure (all other cases).
Usage
You cannot use MQEPH structures to send commands to the command server or any other queue manager PCF-accepting server.
Similarly, the command server or any other queue manager PCF-accepting server do not generate responses or events containing MQEPH structures.
Fields
Field name and description | Name of constant | Initial value (if any) of constant |
---|---|---|
StrucId (structure identifier) | MQEPH_STRUC_ID | 'EPH¬' |
Version (structure version number) | MQEPH_VERSION_1 | 1 |
StrucLength (length of MQEPH structure plus the MQCFH and parameter structures that follow it) | MQEPH_STRUC_LENGTH_FIXED | 68 |
Encoding (numeric encoding of data that follows last PCF parameter structure) | None | 0 |
CodedCharSetId (character set identifier of data that follows last PCF parameter structure) | MQCCSI_UNDEFINED | 0 |
Format (format name of data that follows last PCF parameter structure) | MQFMT_NONE | Blanks |
Flags (flags) | MQEPH_NONE | 0 |
PCFHeader (programmable command format (PCF) header) | Names and values as defined in Table 1 | 0 |
Notes:
|
Language declarations
C declaration for MQEPH
typedef struct tagMQEPH MQEPH;
struct tagMQDH {
MQCHAR4 StrucId; /* Structure identifier */
MQLONG Version; /* Structure version number */
MQLONG StrucLength; /* Total length of MQEPH including the MQCFH
and parameter structures that follow it */
MQLONG Encoding; /* Numeric encoding of data that follows last
PCF parameter structure */
MQLONG CodedCharSetId; /* Character set identifier of data that
follows last PCF parameter structure */
MQCHAR8 Format; /* Format name of data that follows last PCF
parameter structure */
MQLONG Flags; /* Flags */
MQCFH PCFHeader; /* Programmable command format header */
};
COBOL declaration for MQEPH
** MQEPH structure
10 MQEPH.
** Structure identifier
15 MQEPH-STRUCID PIC X(4).
** Structure version number
15 MQEPH-VERSION PIC S9(9) BINARY.
** Total length of MQEPH structure including the MQCFH
** and parameter structures that follow it
15 MQEPH-STRUCLENGTH PIC S9(9) BINARY.
** Numeric encoding of data that follows last
** PCF structure
15 MQEPH-ENCODING PIC S9(9) BINARY.
** Character set identifier of data that
** follows last PCF parameter structure
15 MQEPH-CODEDCHARSETID PIC S9(9) BINARY.
** Format name of data that follows last PCF
** parameter structure
15 MQEPH-FORMAT PIC X(8).
** Flags
15 MQEPH-FLAGS PIC S9(9) BINARY.
** Programmable command format header
15 MQEPH-PCFHEADER.
** Structure type
20 MQEPH-PCFHEADER-TYPE PIC S9(9) BINARY.
** Structure length
20 MQEPH-PCFHEADER-STRUCLENGTH PIC S9(9) BINARY.
** Structure version number
20 MQEPH-PCFHEADER-VERSION PIC S9(9) BINARY.
** Command identifier
20 MQEPH-PCFHEADER-COMMAND PIC S9(9) BINARY.
** Message sequence number
20 MQEPH-PCFHEADER-MSGSEQNUMBER PIC S9(9) BINARY.
** Control options
20 MQEPH-PCFHEADER-CONTROL PIC S9(9) BINARY.
** Completion code
20 MQEPH-PCFHEADER-COMPCODE PIC S9(9) BINARY.
** Reason code qualifying completion code
20 MQEPH-PCFHEADER-REASON PIC S9(9) BINARY.
** Count of parameter structures
20 MQEPH-PCFHEADER-PARAMETERCOUNT PIC S9(9) BINARY.
PL/I declaration for MQEPH
dcl
1 MQEPH based,
3 StrucId char(4), /* Structure identifier */
3 Version fixed bin(31), /* Structure version number */
3 StrucLength fixed bin(31), /* Total Length of MQEPH including the
MQCFH and parameter structures that
follow it
3 Encoding fixed bin(31), /* Numeric encoding of data that follows
last PCF parameter structure
3 CodedCharSetId fixed bin(31), /* Character set identifier of data that
follows last PCF parameter structure
3 Format char(8), /* Format name of data that follows last
PCF parameter structure */
3 Flags fixed bin(31), /* Flags */
3 PCFHeader, /* Programmable command format header
5 Type fixed bin(31), /* Structure type */
5 StrucLength fixed bin(31), /* Structure length */
5 Version fixed bin(31), /* Structure version number */
5 Command fixed bin(31), /* Command identifier */
5 MsgseqNumber fixed bin(31), /* Message sequence number */
5 Control fixed bin(31), /* Control options */
5 CompCode fixed bin(31), /* Completion code */
5 Reason fixed bin(31), /* Reason code qualifying completion code */
5 ParameterCount fixed bin(31); /* Count of parameter structures */
High Level Assembler declaration for MQEPH
MQEPH DSECT
MQEPH_STRUCID DS CL4 Structure identifier
MQEPH_VERSION DS F Structure version number
MQEPH_STRUCLENGTH DS F Total length of MQEPH including the
* MQCFH and parameter structures that
follow it
MQEPH_ENCODING DS F Numeric encoding of data that follows
* last PCF parameter structure
MQEPH_CODEDCHARSETID DS F Character set identifier of data that
* follows last PCF parameter structure
MQEPH_FORMAT DS CL8 Format name of data that follows last
* PCF parameter structure
MQEPH_FLAGS DS F Flags
MQEPH_PCFHEADER DS 0F Force fullword alignment
MQEPH_PCFHEADER_TYPE DS F Structure type
MQEPH_PCFHEADER_STRUCLENGTH DS F Structure length
MQEPH_PCFHEADER_VERSION DS F Structure version number
MQEPH_PCFHEADER_COMMAND DS F Command identifier
MQEPH_PCFHEADER_MSGSEQNUMBER DS F Structure length
MQEPH_PCFHEADER_CONTROL DS F Control options
MQEPH_PCFHEADER_COMPCODE DS F Completion code
MQEPH_PCFHEADER_REASON DS F Reason code qualifying completion code
MQEPH_PCFHEADER_PARAMETER COUNT DS F Count of parameter structures
MQEPH_PCFHEADER_LENGTH EQU *-MQEPH_PCFHEADER
ORG MQEPH_PCFHEADER
MQEPH_PCFHEADER_AREA DS CL(MQEPH_PCFHEADER_LENGTH)
*
MQEPH_LENGTH EQU *-MQEPH
ORG MQEPH
MQEPH_AREA DS CL(MQEPH_LENGTH)
Visual Basic declaration for MQEPH
Type MQEPH
StrucId As String*4 'Structure identifier'
Version As Long 'Structure version number'
StrucLength As Long 'Total length of MQEPH structure including the MQCFH'
'and parameter structures that follow it'
Encoding As Long 'Numeric encoding of data that follows last'
'PCF parameter structure'
CodedCharSetId As Long 'Character set identifier of data that'
'follows last PCF parameter structure'
Format As String*8 'Format name of data that follows last PCF'
'parameter structure'
Flags As Long 'Flags'
PCFHeader As MQCFH 'Programmable command format header'
End Type
Global MQEPH_DEFAULT As MQEPH