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 » Parameters for amqsput

Post new topic  Reply to topic
 Parameters for amqsput « View previous topic :: View next topic » 
Author Message
KIT_INC
PostPosted: Tue Aug 11, 2009 9:01 am    Post subject: Parameters for amqsput Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

The source of the sample amqsput shows that it will accept 6 parameters. I do not need any additional MQOO or MQCO. But I do need name of target Qmgr. How can I skip over the QMOO and MQCO?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Aug 11, 2009 9:06 am    Post subject: Re: Parameters for amqsput Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

KIT_INC wrote:
How can I skip over the QMOO and MQCO?


Change the code; it's only a sample. You've probably already changed the buffer size from the 100 bytes it's supplied with.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
KIT_INC
PostPosted: Tue Aug 11, 2009 9:34 am    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

I'll change the code.

Just for others information, even if I put in the open or close options, I am getting MQRC 2046.

C:\>amqsput LQ1 QM1 MQOO_BIND_NOT_FIXED MQCO_NONE QM3
Sample AMQSPUT0 start
target queue is LQ1
target queue manager is QM3
open options are 0
MQOPEN ended with reason code 2046
unable to open queue for output
Sample AMQSPUT0 end

I think the sample programs are described in the application programming guide. But I cannot find any info regarding these parameters there.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Tue Aug 11, 2009 10:07 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Supply the integer #s for those options, not the variable names, when calling amqsput(c).
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Wed
PostPosted: Thu Oct 29, 2015 3:46 am    Post subject: What are the integer #s Reply with quote

Newbie

Joined: 29 Oct 2015
Posts: 1

Hi,

I'm having the issue connecting my MQ Client to remote MQ Server.

AMQSPUTC Queue QueueMgr test
Sample AMQSPUT0 start
target queue is queue
open options are 0
MQOPEN ended with reason code 2046
unable to open queue for output
Sample AMQSPUT0 end

Could you please clarify or elaborate on what the integer #s should be in the following sentence; "Supply the integer #s for those options"

Regards,
Wed.
Back to top
View user's profile Send private message
exerk
PostPosted: Thu Oct 29, 2015 4:03 am    Post subject: Re: What are the integer #s Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

This is a six-year-old post and it's better to create a new one and reference the old, especially if the original post is a long one.

Wed wrote:
I'm having the issue connecting my MQ Client to remote MQ Server.

AMQSPUTC TI.GWY.IN MQDEURO1 test

The options that must be supplied are queue name, or queue name and queue manager name; that should give you a clue as to what is going wrong. See HERE for more detail.
_________________
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
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 » Parameters for amqsput
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.