Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
remove message from mq

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: remove message from mq
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    Post subject:
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

Moderator


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

PostPosted: Mon Jan 20, 2014 3:00 pm    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts User key common area users - How to r... vasanthz All Other Mainframe Topics 0 Thu Oct 10, 2019 1:17 am
No new posts IEBGENER to copy from FB to VB and re... Mike.Fulton All Other Mainframe Topics 3 Sat Aug 24, 2019 7:20 am
This topic is locked: you cannot edit posts or make replies. Unable to allocate Message Library in... Learncoholic CLIST & REXX 13 Fri Jun 21, 2019 5:50 pm
No new posts To remove the spaces using SORT Card dharmaraok DFSORT/ICETOOL 1 Tue Apr 30, 2019 3:42 pm
No new posts Break Auto update screen without message packerm TSO/ISPF 2 Wed Oct 03, 2018 2:44 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us