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

No message in reply queue!!


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

New User


Joined: 04 Sep 2017
Posts: 43
Location: India

PostPosted: Thu Jan 11, 2018 10:45 am
Reply with quote

Hi all,

I have a requirement to check whether all the MQ functions like connect, put, get and disconnect are working good though there are not any messages in queue.

I have coded and I am able to execute connect and PUT request. But during MQGET the queue waits for some time and throws 2033 abend as there are no messages in reply queue.

Is there any way that I can get a response from MQGET though there will be no messages in reply queue which is the requirement too.

Thanks!
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


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

PostPosted: Thu Jan 11, 2018 1:34 pm
Reply with quote

Quote:
But during MQGET the queue waits for some time and throws 2033 abend as there are no messages in reply queue.

Read more: ibmmainframes.com/viewtopic.php?t=66390#ixzz53rQFp2My


In the first place - why is this in the Cobol section and not the MQ section ??

In the second place, the queue doesn't "wait" - the MQGET does, Thirdly, the 2033 isn't "thrown" - it is returned.

You don't show any code to explain what you're trying to do. Have you correctly placed the replytoqueue in the MQMD for the request? Have you an application that is correctly receiving, processing and replying to the request message? What MsgId and CorrelId values are you setting in the MQMD for the MQGET (do they correspond with what the server applicatgion is setting)c? Are both the client and server applications connected to the same QMgr?

Garry.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Jan 11, 2018 7:41 pm
Reply with quote

Vignesh Sid wrote:
Is there any way that I can get a response from MQGET though there will be no messages in reply queue which is the requirement too.

That's what you are doing already: issue MQGET, if error code is 2033 then there is no message.
You can change the amount of time MQGET waits for a message to arrive (wait interval in milliseconds)

Quote:
waits for some time and throws 2033 abend

NB. 2033 is not an abend, it is a return code, and it can be a valid answer.
Back to top
View user's profile Send private message
Vignesh Sid

New User


Joined: 04 Sep 2017
Posts: 43
Location: India

PostPosted: Tue Jan 23, 2018 1:09 pm
Reply with quote

Thanks for your replies. I was sending messages in a request queue in wrong format. Now I am able to get a response from reply queue.

Thanks!
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
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts IMS Message : DFS3577A IMS DB/DC 4
No new posts MQ response when MQGET of a stopped q... Java & MQSeries 2
No new posts IOF Output Queue & REXX(?) All Other Mainframe Topics 2
No new posts dsnrexx fails without error message CLIST & REXX 9
Search our Forums:

Back to Top