IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

remove message from mq


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hkalhor

New User


Joined: 20 May 2007
Posts: 15
Location: Iran

PostPosted: Mon Jan 20, 2014 1:26 pm
Reply with quote

Hi
how can remove a browsed message from mq - I have read that we must set the option to "MQGMO_MSG_UNDER_CURSOR" and try to get again but
COMPLETION CODE = 2
REASON CODE = 2037

is any one to give me an example?
Back to top
View user's profile Send private message
sureshpathi10

Active User


Joined: 03 May 2010
Posts: 154
Location: Kuala Lumpur

PostPosted: Mon Jan 20, 2014 2:35 pm
Reply with quote

Hi,

The Reason code 2037 tells that the MQ is not opened for INPUT.
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqsao.doc%2Ffm12410_1.htm


You have to set MQOO-INPUT-AS-Q-DEF to the OPENOPTIONS, while open the queue.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Jan 20, 2014 3:00 pm
Reply with quote

Check if the queue is open
Back to top
View user's profile Send private message
sureshpathi10

Active User


Joined: 03 May 2010
Posts: 154
Location: Kuala Lumpur

PostPosted: Mon Jan 20, 2014 3:34 pm
Reply with quote

IF you use MQGMO-SYNCPOINT to MQGMO-OPTIONS while GET message, that particular message will be deleted after read.

Please refer CSQ4BVJ1 (default IBM program for GET message and will be available, if MQ installed) to understand better.
Back to top
View user's profile Send private message
hkalhor

New User


Joined: 20 May 2007
Posts: 15
Location: Iran

PostPosted: Mon Jan 20, 2014 5:19 pm
Reply with quote

hi
thanks everyone, the error was about the opening options.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts Remove leading zeroes SYNCSORT 4
No new posts IMS Message : DFS3577A IMS DB/DC 4
No new posts dsnrexx fails without error message CLIST & REXX 9
Search our Forums:

Back to Top