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: 1542
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 Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts Default Message in Rexx cvnlynn CLIST & REXX 9 Wed Aug 02, 2017 12:38 am
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm

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