|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Reason code 2037 MQRC_NOT_OPEN_FOR_INPUT when try to BROWSE |
« View previous topic :: View next topic » |
Author |
Message
|
Cristian |
Posted: Mon Dec 12, 2011 3:29 pm Post subject: Reason code 2037 MQRC_NOT_OPEN_FOR_INPUT when try to BROWSE |
|
|
Newbie
Joined: 12 Dec 2011 Posts: 2
|
Hi
I tried to browse a queue using a C program in a MVS lpar, I setup the MQGMO but I received a 2037 error code.
As you probably know 2037 means an MQGET call was issued to retrieve a message from a queue, but the queue had not been opened for input.
I have read all MQGMO settings and samples and all I have found are the same kind of settings with MQGMO_DEFAULT and MQOO_BROWSE so with that setting it should work but still it doesn´t.
What am I missing?
This is the C program setting that I have:
MQGMO getMsgOptions = {MQGMO_DEFAULT}; /* Get options */
***
MQLONG openOptions; /* Open queue options */
***
/* Set the options that we wish to use to open the queue */
openOptions = MQOO_BROWSE;
MQOPEN (hConn, &objDesc, openOptions, &hObj, &compCode, &reason);
Thx |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Dec 12, 2011 4:30 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Add to the MQOPEN options MQOO_INPUT. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Cristian |
Posted: Mon Dec 12, 2011 5:05 pm Post subject: |
|
|
Newbie
Joined: 12 Dec 2011 Posts: 2
|
Hi Bruce
I did but I received the reason code 2035 MQRC_NOT_AUTHORIZED
I also tried with MQGMO MQGMO_BROWSE_FIRST and MQOO_BROWSE but I received a reason code 2186 MQRC_GMO_ERROR |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Dec 12, 2011 5:33 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can't mix MQGMO and MQOO options.
If you get an MQRC 2035 when you try to MQOPEN, then you don't have the needed permissions. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|