Chapter 5 Duplicate a Message
Duplicating a Message.
This section will describe how to duplicate a message in a queue.
Purpose
Use the Duplicate command to replicate messages in the queue. The user
can you select to have the Dead Letter Header removed if present before the message is written
to the target queue.
Syntax
{mqbt or mqbt.sh} Duplicate -a Path_and_FileName_for_CommProfileDB -p Profile_Name -q Source_Queue_Name [-s Start_Position] [-c Message_Count]
Function Name:
Duplicate
Required Parameters:
-a The full path and filename for a CommProfileDB.properties file.
-p The name of a profile contained in the CommProfileDB.properties file.
-q The name of the queue. (Note: Queue names are case sensitive.)
Optional Parameters:
-s Start position when getting messages from the queue. The default is 1.
-c Number of messages to be read from the queue. The default is all messages.
Example 1
Duplicate all messages from in the queue.
Windows
mqbt Duplicate -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q
Unix
./mqbt.sh Duplicate -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q
Example 2
Duplicate 50 messages starting at message number 20 in the queue.
Windows
mqbt Duplicate -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -s 20 -c 50
Unix
./mqbt.sh Duplicate -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -s 20 -c 50
|