+

Search Tips | Advanced Search

MQBYTEn (String of n bytes) on IBM i

Each MQBYTEn data type represents a string of n bytes.

Where n can take one of the following values:

  • 16, 24, 32, or 64.

Each byte is described by the MQBYTE data type. No special alignment is required.

If the data in the string is shorter than the defined length of the string, the data must be padded with nulls to fill the string.

When the queue manager returns byte strings to the application (for example, on the MQGET call), the queue manager always pads with nulls to the defined length of the string.

Constants are available that define the lengths of byte string fields.

Parent topic: Elementary data types

Last updated: 2020-10-04