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
 
No message in reply queue!!

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
Vignesh Sid

New User


Joined: 04 Sep 2017
Posts: 32
Location: India

PostPosted: Thu Jan 11, 2018 10:45 am    Post subject: No message in reply queue!!
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: 1006
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Jan 11, 2018 1:34 pm    Post subject:
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: http://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: 1277
Location: Israel

PostPosted: Thu Jan 11, 2018 7:41 pm    Post subject: Re: No message in reply queue!!
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: 32
Location: India

PostPosted: Tue Jan 23, 2018 1:09 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Trap the jcl error message or maxcc i... ankita agarwal CLIST & REXX 5 Fri May 18, 2018 2:08 pm
No new posts HSM log message : GENMSG -ROU/1 -NL/! kadiresh JCL & VSAM 1 Sat Mar 03, 2018 5:52 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm
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

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