Author |
Message
|
rahuldhanpal |
Posted: Tue Oct 30, 2012 10:39 am Post subject: Question regarding MA01 Support pac |
|
|
Voyager
Joined: 24 Jan 2009 Posts: 84 Location: Kenosha WI
|
Hi ALL, can any one give me the right syntax when i am using MA01 support pac to move or copy messages from one queue to another queue? I understand they can be found in read me text file but i am a little confused with the following
Move messages between Queues : q -IQ1 -oQ2
Copy messages between Queues : q -iQ1 -oQ2
Question: is there a no need to mention the qmgr name in the syntax?or if we have mention qmgr name in that syntax, how would it look?
Question: I want to move or copy all messages of one queue to a target queue of the same qmgr! |
|
Back to top |
|
 |
jdt |
Posted: Tue Oct 30, 2012 12:19 pm Post subject: |
|
|
Newbie
Joined: 30 Oct 2012 Posts: 1
|
from the readme file for MA01 ...
-I<Q> The name of the Input Queue name (if any) to do destructive get
-i<Q> The name of the Input Queue name (if any) to browse
Although I am new to MQ, from what I have been taught, if there is only one queue manager running on your server, often you do not need to specify it in your command string. On the other hand, it is often better (IMHO) to be exact and specify rather than assume it knows what you want (and have it not do what you expect). So I am using the -m<Qmgr> when I use MA01 even though I am only running one queue manager on the server that I am working with.
Move vs Copy: Do you want to have the messages on both your input queue AND your output queue (copy, use -i) or have the messages leave your input queue and reside on the output queue only (move, use -I)? |
|
Back to top |
|
 |
rahuldhanpal |
Posted: Tue Oct 30, 2012 1:05 pm Post subject: |
|
|
Voyager
Joined: 24 Jan 2009 Posts: 84 Location: Kenosha WI
|
Ok your response does makes sense to me and i have another question
Move messages between Queues : q -IQ1 -oQ2
Copy messages between Queues : q -iQ1 -oQ2
where o is upper case alphabet in both the above scenarios? |
|
Back to top |
|
 |
rahuldhanpal |
Posted: Tue Oct 30, 2012 3:28 pm Post subject: |
|
|
Voyager
Joined: 24 Jan 2009 Posts: 84 Location: Kenosha WI
|
rahuldhanpal wrote: |
Ok your response does makes sense to me and i have another question
Move messages between Queues : q -IQ1 -oQ2
Copy messages between Queues : q -iQ1 -oQ2
where o is upper case alphabet in both the above scenarios? |
|
|
Back to top |
|
 |
exerk |
Posted: Wed Oct 31, 2012 1:38 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
jdt wrote: |
Although I am new to MQ, from what I have been taught, if there is only one queue manager running on your server, often you do not need to specify it in your command string. |
Only true if a default queue manager has been set on the server. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Oct 31, 2012 4:23 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There's a difference between a destructive get and a browse in how the message is handled. There's really no way to do a "browse put". You can only either put the message in transaction or not, you can't 'put' it without actually writing it.
So there's no way that MA01 could support the same two different types of input option with the output option. |
|
Back to top |
|
 |
|