5 1 13 MQSeries Built In Functions

LANSA Integrator

5.1.13 MQSeries Built-In Functions

The MQSeries Built-In Functions allow messages to be read from a message queue and transferred across to the loaded service for processing. Also XML responses can be transferred from the loaded service and put into a message queue.

All Built-in functions return at least a status and message. The status is a string value or an MQ API reason code prefixed with the string MQR.

  • OK
  • ERROR
  • FATAL
  • MQR2002 - Already connected
  • MQR2033 - No messages
  • MQR2058 - Queue manager name not valid or not known
  • MQR2086 - Unknown Queue Manager
  • MQR2079 - Truncated message accepted
  • MQR2080 - Truncated message failed
  • etc..

The connection and queue handle parameters are 4 byte binary values and cannot be sent across to the loaded service, so the fields that hold these values must be named with the JSM prefix to exclude them from the service field list data transfer.

The Built-In Functions are:

MQ_CONN

MQ_DISC

MQ_BEGIN

MQ_CMIT

MQ_BACK

MQ_OPEN

MQ_CLOSE

MQ_GET

MQ_PUT

MQ_DEPTH

Also see

MQSeries Built-in Function Code Example