Follow the steps below to retrieve messages on the MQ server and save them locally:
From within the Project Designer page, navigate to the
Application
MQ
folder in the Component Library, and then drag the MQ Receive Message task to the Project Outline.
On the Basic tab of the MQ Receive Message task, specify values for the following attributes:
Session ID
The Session ID variable created in the Open MQ Session Task containing the MQ session connection information.
Source Name
The queue or topic name on the MQ server from which the messages will be retrieved.
Source Type
In this example the message is being retrieved from a queue on the MQ server.
Output Directory
The
file path where the messages will be saved. Type the file path or click the
icon to browse for a file path location.
Output File Name
It is recommended to use the Current Message Variable's ID in the file name (for example, ${MQMessage:id}.dat) to ensure that all retrieved messages are stored with unique file names.