Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums 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: 1567
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 Break Auto update screen without message packerm TSO/ISPF 2 Wed Oct 03, 2018 2:44 pm
No new posts Remove selected duplicate rows from t... hnharish DFSORT/ICETOOL 3 Wed Sep 05, 2018 3:11 am
No new posts SOAP Message Handler Application Inte... John Poulakos CICS 1 Fri Aug 24, 2018 1:05 am
No new posts Pre-Compiler Bug with DSNH520I message? John Poulakos DB2 1 Thu Aug 09, 2018 9:00 pm
This topic is locked: you cannot edit posts or make replies. remove the gap b/w 2 fields shymala COBOL Programming 5 Thu Aug 02, 2018 12:05 pm

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