Author |
Message
|
KIT_INC |
Posted: Tue Aug 11, 2009 9:01 am Post subject: Parameters for amqsput |
|
|
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 |
|
 |
Vitor |
Posted: Tue Aug 11, 2009 9:06 am Post subject: Re: Parameters for amqsput |
|
|
 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 |
|
 |
KIT_INC |
Posted: Tue Aug 11, 2009 9:34 am Post subject: |
|
|
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 |
|
 |
PeterPotkay |
Posted: Tue Aug 11, 2009 10:07 am Post subject: |
|
|
 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 |
|
 |
Wed |
Posted: Thu Oct 29, 2015 3:46 am Post subject: What are the integer #s |
|
|
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 |
|
 |
exerk |
Posted: Thu Oct 29, 2015 4:03 am Post subject: Re: What are the integer #s |
|
|
 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 |
|
 |
|