IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

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: 1097
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: Use [URL] BBCode for Links


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: 1348
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

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts Read 4MB message and split into multi... COBOL Programming 9
No new posts Force a Return Code and print error m... SYNCSORT 30
No new posts Warning in dataset message TSO/ISPF 18
No new posts Trap a CP command message in Rexx zVM CLIST & REXX 1
No new posts Retrieving IMS message processing reg... CLIST & REXX 7

Back to Top