Create Queue Manager:
                CRTMQM QM1
Start Queue Manager:
                STRMQM QM1
Get RUNMQSC Console For Queue Manager:
                RUNMQSC QM1
Create Two Local Queues:
                DEFINE
QLOCAL(Q1)
                DEFINE
QLOCAL(Q2)
Put 10 messages into Q1.
Download MO03 Support Pack To Do Following Operations.
Unload
a Queue to a File
qload
–m QM1 –i Q1 –f c:\myfile
Load
a Queue from a File
qload –m QM1 –o Q1 –f
c:\myfile
Copy the messages
from one Queue to another Queue
qload
–m QM1 –i Q1 -o Q2 
Copy the first 10 messages
from one Queue to another
Queue
qload –m QM1 –i Q1 –o Q2 –r#10
| 
Option | 
Meaning | 
| 
x | 
Process message number x only. | 
| 
x..y | 
Process message number x through y only | 
| 
x#y | 
Process y messages starting from message x | 
| 
#y | 
Process y messages starting
  from the beginning. 
Note:
  This is the same
  as 1#y | 
Move the messages from one
Queue to another Queue
qload –m QM1 –I Q1 –o Q2
 
No comments:
Post a Comment
Note: only a member of this blog may post a comment.