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 » Mainframe, CICS, TXSeries » Reason code 2037 MQRC_NOT_OPEN_FOR_INPUT when try to BROWSE

Post new topic  Reply to topic
 Reason code 2037 MQRC_NOT_OPEN_FOR_INPUT when try to BROWSE « View previous topic :: View next topic » 
Author Message
Cristian
PostPosted: Mon Dec 12, 2011 3:29 pm    Post subject: Reason code 2037 MQRC_NOT_OPEN_FOR_INPUT when try to BROWSE Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Mon Dec 12, 2011 4:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Cristian
PostPosted: Mon Dec 12, 2011 5:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Mon Dec 12, 2011 5:33 pm    Post subject: Reply with quote

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
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 » Mainframe, CICS, TXSeries » Reason code 2037 MQRC_NOT_OPEN_FOR_INPUT when try to BROWSE
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.