View previous topic :: View next topic
|
Author |
Message |
Vignesh Sid
New User
Joined: 04 Sep 2017 Posts: 43 Location: India
|
|
|
|
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 |
|
 |
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1189 Location: Dublin, Ireland
|
|
|
|
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 |
|
 |
Marso
REXX Moderator

Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
 |
Vignesh Sid
New User
Joined: 04 Sep 2017 Posts: 43 Location: India
|
|
|
|
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 |
|
 |
|