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 IndexGeneral IBM MQ Supportput using qmgr alias

Post new topicReply to topic
put using qmgr alias View previous topic :: View next topic
Author Message
wmbwmq
PostPosted: Wed Mar 08, 2017 3:54 pm Post subject: put using qmgr alias Reply with quote

Acolyte

Joined: 18 Jul 2011
Posts: 57

Hi
We have a QMGR alias defined for a remote QMGR (with xmitq etc but blank rname). And our app uses that while doing the put.
Now is there anyway I can simulate that with any tools without writing a c or java program (amqsput only takes local QMGR name)
NOTE: I needed this to do some troubleshooting to simulate exactly how app does the put.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Mar 08, 2017 6:57 pm Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 7844
Location: US: west coast, almost. Otherwise, enroute.

What does your qmgr alias look like? Post it here.

What command did you use to launch amps put? What CC/RC did you receive?

What results were you expecting?
_________________
I didn't know that Schrdinger had a cat.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Mar 08, 2017 7:41 pm Post subject: Re: put using qmgr alias Reply with quote

Jedi Council

Joined: 15 May 2001
Posts: 7377

wmbwmq wrote:
(amqsput only takes local QMGR name)

Not true.
https://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q024270_.htm
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
wmbwmq
PostPosted: Wed Mar 08, 2017 9:02 pm Post subject: Reply with quote

Acolyte

Joined: 18 Jul 2011
Posts: 57

runmqsc QMA
def qr(QMB_A) rname('') rqmname(QMB) xmitq(QMB)
*And a channel + xmitq for the above.


Now, the goal is to use QMB_A alias while doing the put and specifying the RNAME as MQPUT queue name. (no definition of RNAME exists in this QMGR but only QMGR alias).
Peter/Kramer, Can you please elaborate what you meant. As per my understanding, the program needs a QMGR name for MQCONN which can only be local QMGR right? Or you meant to change/compile the sample to use QMB_A for MQPUT?
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Mar 08, 2017 9:08 pm Post subject: Reply with quote

Jedi Council

Joined: 15 May 2001
Posts: 7377

The below will connect you to THISQM, put to a queue called THAT.QUEUE, specifying the Object QM Name as THATQM, using 16 for the open options and 0 for the close options.

The syntax is in the link I provided.

Code:
amqsputc THAT.QUEUE THISQM 16 0 THATQM

_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
wmbwmq
PostPosted: Wed Mar 08, 2017 10:18 pm Post subject: Reply with quote

Acolyte

Joined: 18 Jul 2011
Posts: 57

Thanks Peter.
yes you are right. amqsput(c) might work. Why didn't I think of that before
I will try this tomorrow
Back to top
View user's profile Send private message
wmbwmq
PostPosted: Thu Mar 09, 2017 6:48 am Post subject: Reply with quote

Acolyte

Joined: 18 Jul 2011
Posts: 57

Thanks Peter it worked.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral IBM MQ Supportput using qmgr alias
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.