Overview
Purpose: The MQRFH2 structure defines the format of the version-2 rules and formatting header. This header can be used to send data that has been encoded using an XML-like syntax. A message can contain two or more MQRFH2 structures in series, with user data optionally following the last MQRFH2 structure in the series.
Format name: FMRFH2.
Character set and encoding: Special rules apply to the character set and encoding used for the MQRFH2 structure:
- Fields other than RF2NVD are in the character set and encoding given by the MDCSI and MDENC fields in the header structure that precedes MQRFH2, or by those fields in the MQMD structure if the MQRFH2 is at the start of the application message data.
The character set must be one that has single-byte characters for the characters that are valid in queue names.
When GMCONV is specified on the MQGET call, the queue manager converts these fields to the requested character set and encoding.
- RF2NVD is in the character set given by the RF2NVC field. Only certain Unicode character sets are valid for RF2NVC (see the description of RF2NVC for details).
Some character sets have a representation that is dependent on the encoding. If RF2NVC is one of these character sets, RF2NVD must be in the same encoding as the other fields in the MQRFH2.
When GMCONV is specified on the MQGET call, the queue manager converts RF2NVD to the requested encoding, but does not change its character set.