Example: Transferring from a queue to a single file
We can specify an IBM MQ queue as the source of a file transfer by using the -sq parameter with the fteCreateTransfer command.
About this task
The source data is contained in three messages on the queue START_QUEUE. This queue must be on the source agent's queue manager, QM_NEPTUNE.
Procedure
Type the following command:fteCreateTransfer -sa AGENT_NEPTUNE -sm QM_NEPTUNE -da AGENT_VENUS -df /out/three_to_one.txt -sq START_QUEUEThe data in the messages on the queue START_QUEUE is written to the file /out/three_to_one.txt on the system where AGENT_VENUS is running. Parent topic: Transfer data from messages to files
Related concepts
Related tasks
- Configure an agent to perform message-to-file transfers
- Example: Transferring a group of messages from a queue to a single file
- Example: Inserting a text delimiter before the data from each message
- Example: Inserting a binary delimiter after the data from each message
- Monitor a queue and using variable substitution
- Example: Failing a message-to-file transfer using IBM MQ message properties
Related information
- MQ message properties read by MFT from messages on source queues
- fteCreateTransfer: start a new file transfer