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 » IBM MQ API Support » MQGET in RPGLE failing with RC2186

Post new topic  Reply to topic
 MQGET in RPGLE failing with RC2186 « View previous topic :: View next topic » 
Author Message
anilmnair
PostPosted: Wed Mar 18, 2009 4:23 am    Post subject: MQGET in RPGLE failing with RC2186 Reply with quote

Newbie

Joined: 10 Mar 2009
Posts: 4

Hi

The MQGET failing with the Reason code 2186 when executing the second time in the loop. The MQGET runs fine for the first time but it fails for second time. Please find the code below.

Code:


Eval Buflen = 274
Eval Gmopt = CMCONV
Eval Mdcsi = 37
Dow CcCode <> CcFail
Eval Buffer = *Blanks
Callp Mqget(Hconn:Hobj:Mqmd:Mqgmo:Buflen:Bufptr:
        Msglen:Ccode:Reason)
EndDo

The reason 2186 says
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Mar 18, 2009 5:58 am    Post subject: Reply with quote

Poobah

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

When you looked up 2186 in the WMQ Messages manual, what did it say 2186 meant? What did it say to do to resolve this?
_________________
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
anilmnair
PostPosted: Thu Mar 19, 2009 5:04 am    Post subject: Explanation of RC2186 Reply with quote

Newbie

Joined: 10 Mar 2009
Posts: 4

RC2186
(2186)
Explanation:
On an MQGET call, the MQGMO structure is not valid, for one of the following reasons:
• The GMSID field is not GMSIDV.
• The GMVER field specifies a value that is not valid or not supported.
• The parameter pointer is not valid. (It is not always possible to detect parameter pointers that are not valid; if not detected, unpredictable results occur.)
• The queue manager cannot copy the changed structure to application storage, even though the call is successful. This can occur, for example, if the pointer points to read-only storage.
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 » IBM MQ API Support » MQGET in RPGLE failing with RC2186
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.