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

MQ Queue - read nondestructively


IBM Mainframe Forums -> Java & MQSeries
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
siva_marthala

New User


Joined: 22 Aug 2007
Posts: 7
Location: Pune

PostPosted: Tue Aug 19, 2008 10:36 am
Reply with quote

When I am using MQOO-BROWSE in MQOPEN , my module is abended with reason 2037 .

===================================
RC2037(2037)
Explanation:
An MQGET call was issued to retrieve a message from a queue, but the queue had not been opened for input.

Programmer Response:
Specify one of the following when the queue is opened:

OOINPS
OOINPX
OOINPQ
====================================

I am using MQOO-BROWSE + MQOO-INPUT-SHARED in MQOPEN, MQGMO-BROWSE-FIRST AND MQGMO-BROWSE-NEXT options in MQGET; the data in source queue being deleted.

Tried with MQOO-INPUT-EXCLUSIVE AND MQOO-INPUT-AS-A-DEF. but result is same. source queue being deleted after MQGET call.


Is there any other options to read MQ read nondestructively.

Please do not provide links of Websphere MQ as resolution.
Read and being used. Still the problem is not resolving.
Please send any tailored made solution, if you have.

Thanks
Siva...
Back to top
View user's profile Send private message
siva_marthala

New User


Joined: 22 Aug 2007
Posts: 7
Location: Pune

PostPosted: Wed Aug 20, 2008 7:47 pm
Reply with quote

I resolved my prooblem after reading lot and experimneting lot with program. Now my batch module read the messages from source queue non-destructively and put into target queue.

thanks
Siva
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 20, 2008 7:51 pm
Reply with quote

Quote:

after reading lot and experimneting lot with program.


Siva, congratulations.
you are also added to my list of those who attempt to help themselves.
you will now receive help from me, if i can give it.
Back to top
View user's profile Send private message
siva_marthala

New User


Joined: 22 Aug 2007
Posts: 7
Location: Pune

PostPosted: Thu Aug 21, 2008 12:29 pm
Reply with quote

dbzTHEdinosauer

Thank you. But for me it was a very good learning experience.

Siva...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
No new posts MQ response when MQGET of a stopped q... Java & MQSeries 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts IOF Output Queue & REXX(?) All Other Mainframe Topics 2
Search our Forums:

Back to Top