Retrieving data from message objects

Use the following MQeFields functions to extract data from a message object that has been retrieved from a queue.

MQeFieldsGet is the basic extraction call and it is described here. The other functions are described in the Advanced MQeFields APIs section of this document.

Like MQeFieldsPut(), a field is retrieved by its name using the MQeFieldsGet call.

This API has two modes of operation, the first allows the interrogation of the fields to retrieve its length and the second mode retrieves the contents of the field into a storage area provided by the application. In both modes of operation, the field being targeted is identified by its name which is passed on the API call. The recommended way to use this API is:

  1. Retrieve the length of a field.
  2. Allocate enough storage to hold the contents of the field.
  3. Get the contents of the field into the storage area.


© IBM Corporation 2002. All Rights Reserved