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

MQ response when MQGET of a stopped queue?


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cgilker

New User


Joined: 02 Mar 2022
Posts: 4
Location: USA

PostPosted: Sat Jun 17, 2023 12:30 am
Reply with quote

What does MQ return (CompCode, Reason) when a program issues an MQGET against a queue that has been stopped?

I can't seem to find that anywhere. My guess is that the CompCode is MQCC_FAILED, and the Reason is MQRC_NO_MSG_AVAILABLE?

Can someone confirm?

I realize I can test this myself, but before I put in that effort, if someone knows this off the top of their head, I would be grateful.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Tue Jun 20, 2023 8:53 pm
Reply with quote

Please give a try and test it .. it could be 2003 or 2005 not sure .
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Jun 21, 2023 12:32 pm
Reply with quote

Quote:
What does MQ return (CompCode, Reason) when a program issues an MQGET against a queue that has been stopped?


What do you mean by a "stopped queue" ? Queue Managers can be stopped but queue processing may be stopped by :
a) get-disabling the queue or
b) put-disabling the queue or
c) if triggered, by stopping the CKTI (or equivalent) monitor task.

For:
a) you would get MQRC_GET_DISABLED
b) you would get MQRC_NO_MSG_AVAILABLE as no messages can have been MQPUT(1) to the queue
c) no task to get a message, so no return code

Regards,
Garry.
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 -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts IOF Output Queue & REXX(?) All Other Mainframe Topics 2
No new posts How can i link the RHDCSNON programa ... IDMS/ADSO 2
No new posts IMS queue causing page through diffic... IMS DB/DC 1
No new posts temporary storage queue CICS 4
Search our Forums:

Back to Top