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 » General IBM MQ Support » Help Needed with using Q tool

Post new topic  Reply to topic
 Help Needed with using Q tool « View previous topic :: View next topic » 
Author Message
skrv
PostPosted: Wed Mar 19, 2014 9:41 am    Post subject: Help Needed with using Q tool Reply with quote

Centurion

Joined: 26 Oct 2012
Posts: 118

Hi,

Using the below command I was able to send out email successfully (Broker flow sends out email).

q -o WMQ.EMAIL.REQUEST -m VL1CN4002 -CA -Aitest -r abc@xyz.com -F test.txt

But if I specify multiple email IDs like below, it is not working.

q -o WMQ.EMAIL.REQUEST -m VL1CN4002 -CA -Aitest -r abc@xyz.com,xxx@xyz.com -F test.txt

I tried enclosing both email IDs in double quotes, even then it is not working.

Any suggestions?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 19, 2014 8:31 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Did you try separating them with a semi-colon instead of a comma.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
skrv
PostPosted: Thu Mar 20, 2014 6:04 am    Post subject: Reply with quote

Centurion

Joined: 26 Oct 2012
Posts: 118

yes I did. it's not working either.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Mar 20, 2014 8:27 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

The Q tool -r option sets the MQMD reply queue name AFAIK.

Not too surprised it doesn't like characters which are invalid in a queue name.

Why don't you change your broker flow to use some other field?

Perhaps the Applid, Origin data, or Account Token as Q tool can also set these.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
skrv
PostPosted: Thu Mar 20, 2014 9:01 am    Post subject: Reply with quote

Centurion

Joined: 26 Oct 2012
Posts: 118

it worked in the first instance which has -r = abc@xyz.com
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Mar 20, 2014 10:58 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Yes, and the reason for your post is that it doesn't work now!

So I am giving you another option.

Of course the broker flow would have to changed to support other fields.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Fri Mar 21, 2014 1:32 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

It seems likely to me that the problem is more with the shell rather than Q.
You don't say what platform you are on or what exactly happens.

Quote:

q -o WMQ.EMAIL.REQUEST -m VL1CN4002 -CA -Aitest -r abc@xyz.com,xxx@xyz.com -F test.txt


Have you tried something like....

q -o WMQ.EMAIL.REQUEST -m VL1CN4002 -CA -Aitest -r 'abc@xyz.com,xxx@xyz.com' -F test.txt

I can well imagine that shells will get upset about commas in parameters.

Having said that I suspect that Q will treat the comma as a separator as well and will make the first email address the Reply Queue and the second the Reply Queue Manager which is probably not what you wanted. You need to do a command like

q -o WMQ.EMAIL.REQUEST -m VL1CN4002 -CA -Aitest -$# -r 'abc@xyz.com,xxx@xyz.com' -F test.txt

The $ parameter sets the character used for separation.

Cheers,
Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
zpat
PostPosted: Fri Mar 21, 2014 3:58 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

I am impressed once again that the Q program has an option for everything (well almost everything...).
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Mar 21, 2014 5:01 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

PaulClarke wrote:
It seems likely to me that the problem is more with the shell rather than Q.


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Help Needed with using Q tool
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.