Example: Inserting a binary delimiter after the data from each message
When transferring in binary mode from a source queue to a file, we can specify that a binary delimiter is inserted after the data from individual messages by using the -sq, -sqdb, and -sqdp parameters with the fteCreateTransfer command.
About this task
In this example, there are three messages on the queue START_QUEUE. This queue is on the source agent's queue manager, QM_NEPTUNE. The binary delimiter to be inserted after the data from each message must be expressed as a comma-separated list of hexadecimal bytes, for example: x34,xE7,xAE.
Procedure
Type the following command:fteCreateTransfer -sa AGENT_NEPTUNE -sm QM_NEPTUNE -da AGENT_VENUS -df /out/binary.file -sqdp postfix -sqdb x34,xE7,xAE -sq START_QUEUEThe binary delimiter is appended to the data from each of the three messages on START_QUEUE by the source agent, AGENT_NEPTUNE. This data is written to the destination file, /out/binary.file. Parent topic: Transfer data from messages to files
Related concepts
Related tasks
- Configure an agent to perform message-to-file transfers
- Example: Transferring from a queue to a single file
- Example: Transferring a group of messages from a queue to a single file
- Example: Inserting a text delimiter before 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