Data type descriptions on IBM i
This collection of topics provides descriptions of data types used in IBM i programming.
Conventions used in the description of data types
For each elementary data type, this information gives a description of its usage, in a form that is independent of the programming language. This is followed by typical declarations in the ILE version of the RPG programming language. The definitions of elementary data types are included here to provide consistency. RPG uses 'D' specifications where working fields can be declared using whatever attributes we need. We can, however, do this in the calculation specifications where the field is used.
To use the elementary data types, you create:- A /COPY member containing all the data types, or
- An external data structure (PF) containing all the data types. You then need to specify your working fields with attributes 'LIKE' the appropriate data type field.
The benefits of the second option are that the definitions can be used as a 'FIELD REFERENCE FILE' for other IBM i objects. If an IBM MQ data type definition changes, it is a relatively simple matter to re-create these objects.
- Elementary data types
All of the other data types described in this section equate either directly to these elementary data types, or to aggregates of these elementary data types (arrays or structures). - Language considerations
This topic contains information to help we use the MQI from the RPG programming language. - MQAIR (Authentication information record) on IBM i
The MQAIR structure represents the authentication information record. - MQBMHO (Buffer to message handle options) on IBM i
Structure defining the buffer to message handle options. - MQBO (Begin options) on IBM i
The MQBO structure allows the application to specify options relating to the creation of a unit of work. - MQCBC (Callback context) on IBM i
Structure describing the callback routine. - MQCBD (Callback descriptor) on IBM i
Structure specifying the callback function. - MQCHARV (Variable Length String) on IBM i
Use the MQCHARV structure to describe a variable length string. - MQCIH (CICS bridge header) on IBM i
The MQCIH structure describes the information that can be present at the start of a message sent to the CICS bridge through IBM MQ for z/OS . - MQCMHO (Create message handle options) on IBM i
The MQCMHO structure allows applications to specify options that control how message handles are created. - MQCNO (Connect options) on IBM i
The MQCNO structure allows the application to specify options relating to the connection to the local queue manager. - MQCSP (Security parameters) on IBM i
Summary of the MQCSP structure for IBM i. - MQCTLO (Control callback options structure) on IBM i
Structure specifying the control callback function. - MQDH (Distribution header) on IBM i
The MQDH structure describes the additional data that is present in a message when that message is a distribution-list message stored on a transmission queue. - MQDLH (Dead-letter header) on IBM i
- MQDMHO (Delete message handle options) on IBM i
The MQDMHO structure allows applications to specify options that control how message handles are deleted. - MQDMPO (Delete message property options) on IBM i
Structure defining the delete message property options. - MQEPH (Embedded PCF header) on IBM i
- MQGMO (Get-message options) on IBM i
The MQGMO structure allows the application to specify options that control how messages are removed from queues. - MQIIH (IMS information header) on IBM i
The MQIIH structure describes the information that must be present at the start of a message sent to the IMS bridge through IBM MQ for z/OS. - MQIMPO (Inquire message property options) on IBM i
The MQIMPO structure allows applications to specify options that control how properties of messages are inquired. - MQMD (Message descriptor) on IBM i
- MQMDE (Message descriptor extension) on IBM i
- MQMHBO (Message handle to buffer options) on IBM i
Structure defining the message handle to buffer options - MQOD (Object descriptor) on IBM i
The MQOD structure is used to specify an object by name. - MQOR (Object record) on IBM i
The MQOR structure is used to specify the queue name and queue manager name of a single destination queue. - MQPD - Property descriptor
The MQPD is used to define the attributes of a property. - MQPMO (Put-message options) on IBM i
The MQPMO structure allows the application to specify options that control how messages are placed on queues or published to topics. - MQPMR (Put-message record) on IBM i
The MQPMR structure is used to specify various message properties for a single destination when a message is being put to a distribution list. - MQRFH (Rules and formatting header) on IBM i
The MQRFH structure defines the layout of the rules and formatting header. - MQRFH2 (Rules and formatting header 2) on IBM i
The MQRFH2 structure defines the format of the version-2 rules and formatting header. - MQRMH (Reference message header) on IBM i
The MQRMH structure defines the format of a reference message header. - MQRR (Response record) on IBM i
The MQRR structure is used to receive the completion code and reason code resulting from the open or put operation for a single destination queue, when the destination is a distribution list. - MQSCO (TLS configuration options) on IBM i
The MQSCO structure (with the TLS fields in the MQCD structure) allows an application running as an IBM MQ MQI client to specify configuration options that control the use of TLS for the client connection when the channel protocol is TCP/IP. - MQSD (Subscription descriptor) on IBM i
The MQSD structure is used to specify details about the subscription being made. - MQSMPO (Set message property options) on IBM i
The MQSMPO structure allows applications to specify options that control how properties of messages are set. - MQSRO (Subscription Request Options) on IBM i
The MQSRO structure allows the application to specify options that control how a subscription request is made. - MQSTS (Status reporting structure) on IBM i
The MQSTS structure describes the data in the status structure returned by the MQSTAT command. - MQTM - Trigger message
The MQTM structure describes the data in the trigger message that is sent by the queue manager to a trigger-monitor application when a trigger event occurs for a queue. - MQTMC2 (Trigger message 2 - character format) on IBM i
When a trigger-monitor application retrieves a trigger message (MQTM) from an initiation queue, the trigger monitor might need to pass some or all of the information in the trigger message to the application that is started by the trigger monitor. - MQWIH (Work information header) on IBM i
The MQWIH structure describes the information that must be present at the start of a message that is to be handled by the z/OS workload manager. - MQXQH (Transmission-queue header) on IBM i
The MQXQH structure describes the information that is prefixed to the application message data of messages when they are on transmission queues.
Parent topic: IBM i Application Programming Reference (ILE/RPG)