ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Archives - All » MQ Batch Toolkit - How To Guide

This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.
 MQ Batch Toolkit - How To Guide « View previous topic :: View next topic » 
Author Message
RogerLacroix
PostPosted: Sun Sep 12, 2004 7:35 pm    Post subject: MQ Batch Toolkit - How To Guide Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3258
Location: London, ON Canada

MQ Batch Toolkit - How To Guide

--------------------------------------------------------------------------------
Q1. How To: Add a profile to allow the MQ Batch Toolkit to connect in bindings mode to the queue manager.

A1. Command to be executed:
On Windows:
Code:
mqbt.bat AddProfile -a c:\CommProfileDB.properties -p MQA1 -m MQA1

On Unix:
Code:
./mqbt.sh AddProfile -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -m MQA1

--------------------------------------------------------------------------------
Q2. How To: Add a profile to allow the MQ Batch Toolkit to connect in client mode to the queue manager.

A2. Command to be executed:
On Windows:
Code:
mqbt.bat AddProfile -a c:\CommProfileDB.properties -p MQA1 -m MQA1 -h 10.10.10.10 -n 1414 -c SYSTEM.DEF.SVRCONN

On Unix:
Code:
./mqbt.sh AddProfile -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -m MQA1 -h 10.10.10.10 -n 1414 -c SYSTEM.DEF.SVRCONN

--------------------------------------------------------------------------------
Q3. How To: Alter an exiting profile to allow the MQ Batch Toolkit to connect in bindings mode to the queue manager.

A3. Command to be executed:
On Windows:
Code:
mqbt.bat AlterProfile -a c:\CommProfileDB.properties -p MQA1 -q MQA1

On Unix:
Code:
./mqbt.sh AlterProfile -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q MQA1

--------------------------------------------------------------------------------
Q4. How To: Alter an exiting profile to allow the MQ Batch Toolkit to connect in client mode to the queue manager.

A4. Command to be executed:
On Windows:
Code:
mqbt.bat AlterProfile -a c:\CommProfileDB.properties -p MQA1 -q MQA1 -h 10.10.10.10 -n 1414 -c SYSTEM.DEF.SVRCONN

On Unix:
Code:
./mqbt.sh AlterProfile -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q MQA1 -h 10.10.10.10 -n 1414 -c SYSTEM.DEF.SVRCONN

--------------------------------------------------------------------------------
Q5. How To: Delete a profile from the CommProfileDB.properties file.

A5. Command to be executed:
On Windows:
Code:
mqbt.bat DeleteProfile -a c:\CommProfileDB.properties -p MQA1

On Unix:
Code:
./mqbt.sh DeleteProfile -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1

--------------------------------------------------------------------------------
Q6. How To: List a profile from a CommProfileDB.properties file.

A6. Command to be executed:
On Windows:
Code:
mqbt.bat ListProfile -a c:\CommProfileDB.properties -p MQA1

On Unix:
Code:
./mqbt.sh ListProfile -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1

--------------------------------------------------------------------------------
Q7. How To: Backup all messages in the 'TEST01.Q' queue.

A7. Command to be executed:
[P]Windows
Code:
mqbt.bat Backup -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -f mybackup.veq

On Unix:
Code:
./mqbt.sh Backup -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -f mybackup.veq

--------------------------------------------------------------------------------
Q8. How To: Backup 10 messages starting at message number 25 from the 'TEST01.Q' queue and delete them from the queue.

A8. Command to be executed:
On Windows:
Code:
mqbt.bat Backup -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -f mybackup.veq -s 25 -c 25 -D

On Unix:
Code:
./mqbt.sh Backup -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -f mybackup.veq -s 25 -c 25 -D

--------------------------------------------------------------------------------
Q9. How To: Restore all messages in the VEQ file to the 'TEST01.Q' queue.

A9. Command to be executed:
On Windows:
Code:
mqbt.bat Restore -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -f mybackup.veq

On Unix:
Code:
./mqbt.sh Restore -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -f mybackup.veq

--------------------------------------------------------------------------------
Q10. How To: Clear the messages in a queue of a queue manager.

A10. Command to be executed:
On Windows:
Code:
mqbt.bat ClearQ -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q

On Unix:
Code:
./mqbt.sh ClearQ -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q

--------------------------------------------------------------------------------
Q11. How To: Clear the messages with a particular Message ID in a queue of a queue manager.

A11. Command to be executed:
On Windows:
Code:
mqbt.bat ClearQByID -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -g 414D51204D51413120202020202020209248C34020000904

On Unix:
Code:
./mqbt.sh ClearQByID -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -g 414D51204D51413120202020202020209248C34020000904

--------------------------------------------------------------------------------
Q12. How To: Clear the messages with a particular Correlation ID in a queue of a queue manager.

A12. Command to be executed:
On Windows:
Code:
mqbt.bat ClearQByID -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -z 414243444142434400000000000000000000000000000000

On Unix:
Code:
./mqbt.sh ClearQByID -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -z 414243444142434400000000000000000000000000000000

--------------------------------------------------------------------------------
Q13. How To: Clear the messages that both a particular Message ID and a particular Correlation ID in a queue of a queue manager.

A13. Command to be executed:
On Windows:
Code:
mqbt.bat ClearQByID -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -g 414D51204D51413120202020202020209248C34020000904 -z 414243444142434400000000000000000000000000000000

On Unix:
Code:
./mqbt.sh ClearQByID -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -g 414D51204D51413120202020202020209248C34020000904 -z 414243444142434400000000000000000000000000000000

--------------------------------------------------------------------------------
Q14. How To: Clear the messages with a particular text string in messages of a queue of a queue manager.

A14. Command to be executed:
On Windows:
Code:
mqbt.bat ClearQByString -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -t test

On Unix:
Code:
./mqbt.sh ClearQByString -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q  -t test

--------------------------------------------------------------------------------
Q15. How To: Clear the messages that do not contain a particular text string starting at message number 25 of a queue of a queue manager.

A15. Command to be executed:
On Windows:
Code:
mqbt.bat ClearQByString -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -t test -s 25 -X

On Unix:
Code:
./mqbt.sh ClearQByString -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q  -t test -s 25 -X

--------------------------------------------------------------------------------
Q16. How To: Clear the messages in a queue of a queue manager that are older than 4 hours.

A16. Command to be executed:
On Windows:
Code:
mqbt.bat ClearQByTime -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -h 4

On Unix:
Code:
./mqbt.sh ClearQByTime -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -h 4

--------------------------------------------------------------------------------
Q17. How To: Clear the messages in a queue of a queue manager that are older than 8 days, 4 hours and 35 minutes.

A17. Command to be executed:
[P]Windows
Code:
mqbt.bat ClearQByTime -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -d 8 -h 4 -m 35

On Unix:
Code:
./mqbt.sh ClearQByTime -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -d 8 -h 4 -m 35

--------------------------------------------------------------------------------
Q18. How To: Clear the messages in a queue of a queue manager that are older than 72 hours and 3 minutes.

A18. Command to be executed:
On Windows:
Code:
mqbt.bat ClearQByTime -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -h 72 -m 3

On Unix:
Code:
./mqbt.sh ClearQByTime -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -h 72 -m 3

--------------------------------------------------------------------------------
Q19. How To: Search (grep) a queue of a queue manager for a text string.

A19. Command to be executed:
On Windows:
Code:
mqbt.bat Find -a c:\CommProfileDB.properties -p MQA1 -t "test"

On Unix:
Code:
./mqbt.sh Find -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -t "test"

--------------------------------------------------------------------------------
Q20. How To: Search (grep) a queue of a queue manager starting at message number 50 for messages without a text string.

A20. Command to be executed:
On Windows:
Code:
mqbt.bat Find -a c:\CommProfileDB.properties -p MQA1 -s 50 -t "test" -X

On Unix:
Code:
./mqbt.sh Find -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -s 50 -t "test" -X

--------------------------------------------------------------------------------
Q21. How To: List all queues in a queue manager.

A21. Command to be executed:
On Windows:
Code:
mqbt.bat QList -a c:\CommProfileDB.properties -p MQA1

On Unix:
Code:
./mqbt.sh QList -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1

--------------------------------------------------------------------------------
Q22. How To: List all queues, queue types, current depth, IPPROCS and OPPROCS of a queue manager.

A22. Command to be executed:
On Windows:
Code:
mqbt.bat QList -a c:\CommProfileDB.properties -p MQA1 -D -T -I -O

On Unix:
Code:
./mqbt.sh QList -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -D -T -I -O

--------------------------------------------------------------------------------
Q23. How To: List only local queues that begin with 'TEST', along with queue types, current depth, IPPROCS and OPPROCS of a queue manager.

A23. Command to be executed:
On Windows:
Code:
mqbt.bat QList -a c:\CommProfileDB.properties -p MQA1 -m "TEST*" -D -T -I -O

On Unix:
Code:
./mqbt.sh QList -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -m "TEST*" -D -T -I -O

--------------------------------------------------------------------------------
Q24. How To: Copy all messages from the source queue to the target queue.

A24. Command to be executed:
On Windows:
Code:
mqbt.bat Copy -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -t TEST02.Q

On Unix:
Code:
./mqbt.sh Copy -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -t TEST02.Q

--------------------------------------------------------------------------------
Q25. How To: Copy 50 messages starting at message number 20 from the source queue to the target queue.

A25. Command to be executed:
Windows
Code:
mqbt.bat Copy -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -t TEST02.Q -s 20 -c 50

On Unix:
Code:
./mqbt.sh Copy -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -t TEST02.Q -s 20 -c 50

--------------------------------------------------------------------------------
Q26. How To: Duplicate all messages from in the queue.

A26. Command to be executed:
On Windows:
Code:
mqbt.bat Duplicate -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q

On Unix:
Code:
./mqbt.sh Duplicate -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q

--------------------------------------------------------------------------------
Q27. How To: Duplicate 50 messages starting at message number 20 in the queue.

A27. Command to be executed:
On Windows:
Code:
mqbt.bat Duplicate -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -s 20 -c 50

On Unix:
Code:
./mqbt.sh Duplicate -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -s 20 -c 50

--------------------------------------------------------------------------------
Q28. How To: Forward all messages from the source queue to the target queue.

A28. Command to be executed:
On Windows:
Code:
mqbt.bat Forward -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -t TEST02.Q

On Unix:
Code:
./mqbt.sh Forward -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -t TEST02.Q

--------------------------------------------------------------------------------
Q29. How To: Forward 50 messages starting at message number 20 from the source queue to the target queue.

A29. Command to be executed:
On Windows:
Code:
mqbt.bat Forward -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -t TEST02.Q -s 20 -c 50

On Unix:
Code:
./mqbt.sh Forward -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -t TEST02.Q -s 20 -c 50

--------------------------------------------------------------------------------
Q30. How To: Insert a binary message to a queue from a file.

A30. Command to be executed:
On Windows:
Code:
mqbt.bat Insert -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -f c:\abc.pdf

On Unix:
Code:
./mqbt.sh Insert -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -f /abc.pdf

--------------------------------------------------------------------------------
Q31. How To: Insert a text string from the command prompt as a 'String' message to a queue.

A31. Command to be executed:
On Windows:
Code:
mqbt.bat Insert -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -S -t "This is a test message."

On Unix:
Code:
./mqbt.sh Insert -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -S -t "This is a test message."

--------------------------------------------------------------------------------
Q32. How To: Insert a message from a file in the Publish/Subscribe format (RFH) to a queue.

A32. Command to be executed:
On Windows:
Code:
mqbt.bat Insert -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -P -f c:\myfile.txt

On Unix:
Code:
./mqbt.sh Insert -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -P -f /myfile.txt

--------------------------------------------------------------------------------
Q33. How To: Insert a message from a file in the JMS format (RFH2) to a queue.

A33. Command to be executed:
On Windows:
Code:
mqbt.bat Insert -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -R -f c:\myfile.txt

On Unix:
Code:
./mqbt.sh Insert -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -R -f /myfile.txt

--------------------------------------------------------------------------------
Q34. How To: Insert a message from a file in the JMS format (RFH2) with a user folder to a queue.

A34. Command to be executed:
On Windows:
Code:
mqbt.bat Insert -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -R -f c:\myfile.txt -r "<usr><up1>ABC</up1></usr>"

On Unix:
Code:
./mqbt.sh Insert -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -R -f /myfile.txt -r "<usr><up1>ABC</up1></usr>"

--------------------------------------------------------------------------------
Q35. How To: Delete all messages from in the queue.

A35. Command to be executed:
On Windows:
Code:
mqbt.bat Delete -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q

On Unix:
Code:
./mqbt.sh Delete -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q

--------------------------------------------------------------------------------
Q36. How To: Delete 50 messages starting at message number 20 in the queue.

A36. Command to be executed:
On Windows:
Code:
mqbt.bat Delete -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -s 20 -c 50

On Unix:
Code:
./mqbt.sh Delete -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -s 20 -c 50

--------------------------------------------------------------------------------
Q37. How To: Import a binary message to a queue from a file.

A37. Command to be executed:
On Windows:
Code:
mqbt.bat Import -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -f c:\abc.pdf

On Unix:
Code:
./mqbt.sh Import -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -f /abc.pdf

--------------------------------------------------------------------------------
Q38. How To: Import a 'string' message to a queue from a file.

A38. Command to be executed:
[P]Windows
Code:
mqbt.bat Import -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -S -f textfile.txt

On Unix:
Code:
./mqbt.sh Import -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -S -f textfile.txt

--------------------------------------------------------------------------------
Q39. How To: Import a message from a file in the Publish/Subscribe format (RFH) to a queue.

A39. Command to be executed:
Windows
Code:
mqbt.bat Import -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -P -f c:\myfile.txt

On Unix:
Code:
./mqbt.sh Import -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -P -f /myfile.txt

--------------------------------------------------------------------------------
Q40. How To: Import a message from a file in the JMS format (RFH2) to a queue.

A40. Command to be executed:
Windows
Code:
mqbt.bat Import -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -R -f c:\myfile.txt

On Unix:
Code:
./mqbt.sh Import -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -R -f /myfile.txt

--------------------------------------------------------------------------------
Q41. How To: Import a message from a file in the JMS format (RFH2) with a user folder to a queue.

A41. Command to be executed:
Windows
Code:
mqbt.bat Import -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -R -f c:\myfile.txt -r "<usr><up1>ABC</up1></usr>"

On Unix:
Code:
./mqbt.sh Import -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -R -f /myfile.txt -r "<usr><up1>ABC</up1></usr>"

--------------------------------------------------------------------------------
Q42. How To: Export all messages in the 'TEST01.Q' queue.

A42. Command to be executed:
On Windows:
Code:
mqbt.bat Export -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -f textfile.txt

On Unix:
Code:
./mqbt.sh Export -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -f textfile.txt

--------------------------------------------------------------------------------
Q43. How To: Export 10 messages starting at message number 25 from the 'TEST01.Q' queue and delete them from the queue.

A43. Command to be executed:
On Windows:
Code:
mqbt.bat Export -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -f textfile.txt -s 25 -c 25 -D

On Unix:
Code:
./mqbt.sh Export -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -f textfile.txt -s 25 -c 25 -D

--------------------------------------------------------------------------------
Q44. How To: Export all messages doing a destructive get (deleting the messages) with the option of 'Convert on Get' from the 'TEST01.Q' queue.

A44. Command to be executed:
On Windows:
Code:
mqbt.bat Export -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -f textfile.txt -D -C

On Unix:
Code:
./mqbt.sh Export -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -f textfile.txt -D -C

--------------------------------------------------------------------------------
Q45. How To: Read all messages from the queue.

A45. Command to be executed:
On Windows:
Code:
mqbt.bat Read -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q

On Unix:
Code:
./mqbt.sh Read -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q

--------------------------------------------------------------------------------
Q46. How To: Read all messages in Hex format from the queue.

A46. Command to be executed:
On Windows:
Code:
mqbt.bat Read -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -H

On Unix:
Code:
./mqbt.sh Read -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -H

--------------------------------------------------------------------------------
Q47. How To: Read all messages in EBCDIC Hex format from the queue.

A47. Command to be executed:
On Windows:
Code:
mqbt.bat Read -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -E

On Unix:
Code:
./mqbt.sh Read -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -E

--------------------------------------------------------------------------------
Q48. How To: Read all messages from the queue and display the message's MQMD (message descriptor).

A48. Command to be executed:
On Windows:
Code:
mqbt.bat Read -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -M

On Unix:
Code:
./mqbt.sh Read -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -M

--------------------------------------------------------------------------------
Q49. How To: Consume the messages in a queue of a queue manager for 4 hours.

A49. Command to be executed:
On Windows:
Code:
mqbt.bat GetServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -h 4

On Unix:
Code:
./mqbt.sh GetServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -h 4

--------------------------------------------------------------------------------
Q50. How To: Consume the messages in a queue of a queue manager for 8 days, 4 hours and 35 minutes.

A50. Command to be executed:
On Windows:
Code:
mqbt.bat GetServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -d 8 -h 4 -m 35

On Unix:
Code:
./mqbt.sh GetServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -d 8 -h 4 -m 35

--------------------------------------------------------------------------------
Q51. How To: Consume the messages in a queue of a queue manager until 5000 mesasges have been consumed.

A51. Command to be executed:
On Windows:
Code:
mqbt.bat GetServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -n 5000

On Unix:
Code:
./mqbt.sh GetServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -n 5000

--------------------------------------------------------------------------------
Q52. How To: Use PutServer to write (put) 100 binary messages to a queue from a file.

A52. Command to be executed:
On Windows:
Code:
mqbt.bat PutServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -n 100 -f c:\abc.pdf

On Unix:
Code:
./mqbt.sh PutServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -n 100 -f /abc.pdf

--------------------------------------------------------------------------------
Q53. How To: Use PutServer to write a text string from the command prompt as a 'String' message to a queue 200 times.

A53. Command to be executed:
On Windows:
Code:
mqbt.bat PutServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -S -n 200 -t "This is a test message."

On Unix:
Code:
./mqbt.sh PutServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -S -n 200 -t "This is a test message."

--------------------------------------------------------------------------------
Q54. How To: Use PutServer to write a message from a file in the Publish/Subscribe format (RFH) to a queue 500 times with a delay of 10 milliseconds between writes (puts).

A54. Command to be executed:
On Windows:
Code:
mqbt.bat PutServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -P -n 500 -d 10 -f c:\myfile.txt

On Unix:
Code:
./mqbt.sh PutServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -P -n 500 -d 10 -f /myfile.txt

--------------------------------------------------------------------------------
Q55. How To: Use PutServer to write a message from a file in the JMS format (RFH2) to a queue 175 times.

A55. Command to be executed:
On Windows:
Code:
mqbt.bat PutServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -R -n 175 -f c:\myfile.txt

On Unix:
Code:
./mqbt.sh PutServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -R -n 175 -f /myfile.txt

--------------------------------------------------------------------------------
Q56. How To: Use PutServer to write a message from a file in the JMS format (RFH2) with a user folder to a queue 400 times.

A56. Command to be executed:
On Windows:
Code:
mqbt.bat PutServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -R -n 400 -f c:\myfile.txt -r "<usr><up1>ABC</up1></usr>"

On Unix:
Code:
./mqbt.sh PutServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -R -n 400 -f /myfile.txt -r "<usr><up1>ABC</up1></usr>"

--------------------------------------------------------------------------------
Q57. How To: Use SIMServer to reply to 100 incoming messages and each reply will be a binary message.

A57. Command to be executed:
On Windows:
Code:
mqbt.bat SIMServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -n 100 -f c:\abc.pdf

On Unix:
Code:
./mqbt.sh SIMServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -n 100 -f /abc.pdf

--------------------------------------------------------------------------------
Q58. How To: Use SIMServer to reply to 200 incoming messages and each reply will be a text string from the command prompt as a 'String' message.

A58. Command to be executed:
On Windows:
Code:
mqbt.bat SIMServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -S -n 200 -t "This is a test message."

On Unix:
Code:
./mqbt.sh SIMServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -S -n 200 -t "This is a test message."

--------------------------------------------------------------------------------
Q59. How To: Use SIMServer to reply to 500 incoming messages and each reply will be from a file in the Publish/Subscribe format (RFH).

A59. Command to be executed:
On Windows:
Code:
mqbt.bat SIMServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -P -n 500 -f c:\myfile.txt

On Unix:
Code:
./mqbt.sh SIMServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -P -n 500 -f /myfile.txt

--------------------------------------------------------------------------------
Q60. How To: Use SIMServer to reply to 175 incoming messages and each reply will be from a file in the JMS format (RFH2) to a queue 175 times.

A60. Command to be executed:
On Windows:
Code:
mqbt.bat SIMServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -R -n 175 -f c:\myfile.txt

On Unix:
Code:
./mqbt.sh SIMServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -R -n 175 -f /myfile.txt

--------------------------------------------------------------------------------
Q61. How To: Use SIMServer to reply to all incoming messages and each reply will a 'String' message from a file. SIMServer will terminate after 4 hours of execution.

A61. Command to be executed:
On Windows:
Code:
mqbt.bat SIMServer -a c:\CommProfileDB.properties -p MQA1 -q TEST01.Q -h 4 -f c:\myfile.txt

On Unix:
Code:
./mqbt.sh SIMServer -a /Capitalware/MQBT/CommProfileDB.properties -p MQA1 -q TEST01.Q -h 4 -f /myfile.txt
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » Archives - All » MQ Batch Toolkit - How To Guide
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.