Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

timeout parameter

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

New User


Joined: 26 Jul 2005
Posts: 64
Location: India

PostPosted: Fri Nov 20, 2009 5:01 pm    Post subject: timeout parameter
Reply with quote

How to set timeout parameter as 15mins for MQ messages.
Back to top
View user's profile Send private message

Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri Nov 20, 2009 7:59 pm    Post subject:
Reply with quote

Please explain your request. Is this for waiting to GET MSGs?
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 994
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Nov 20, 2009 8:20 pm    Post subject:
Reply with quote

Options are either Expiry, in tenths of a second or WaitInterval in thousandths or a second. The former is set in MQMD whend MQPUTting the message, the latter in the MQMD in conjunction with MQGMO_WAIT in Get Options.

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

New User


Joined: 26 Jul 2005
Posts: 64
Location: India

PostPosted: Fri Nov 20, 2009 9:28 pm    Post subject: Reply to: timeout parameter
Reply with quote

Hi Garry & Bill,

Thanks for your quick responses.

My MQPUT call looks like this. Pls advise where to add the timeout parameter. I appreciate it.

Code:
CALL "MQPUT" USING WS-HCONN-HANDLE           
                   WS-HOBJ-HANDLE           
                   MQMD                     
                   MQPMO                     
                   WS-DATALENGTH             
                   FORMATTED-OUTPUT-MSG-XML 
                   MQCFH-COMPCODE           
                   MQCFH-REASON             
END-CALL                                     
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 994
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Nov 20, 2009 9:35 pm    Post subject:
Reply with quote

Since this is an MQPUT, you are speaking of an Expiry Interval, not a timeout.

Code:
  MQMD.Expiry = 9000;  /* 15min * 60sec * 10 */



What MQMD are you going to use for an MQGET for a reply?(if you expect one). Don't re-use the same MQMD - that's asking for trouble.

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

New User


Joined: 26 Jul 2005
Posts: 64
Location: India

PostPosted: Thu Nov 26, 2009 2:48 pm    Post subject:
Reply with quote

Hi Garry thanks a lot for your response.

My understanding is
Expiry & non-persistence should go together.


Pls correct me.

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

Active Member


Joined: 08 May 2006
Posts: 994
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Nov 26, 2009 3:03 pm    Post subject:
Reply with quote

Quote:
My understanding is
Expiry & non-persistence should go together.


Your understanding is incorrect. Expiry applies to both persistent and non-persistent messages and specifies the interval after which MQ is to discard a message. An expired message can contribute to queue-depth, but is inaccessible to applications pending its actual removal from the queue.

Persistence/non-persistence determines whether a message survives a restart of the QueueManager - non-persistent messages are lost on QueueManager restart, regardless of Expiry setting.

It is likely, where persistence is required, that the Expiry should also be set to MQEI_UNLIMITED.

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

New User


Joined: 26 Jul 2005
Posts: 64
Location: India

PostPosted: Thu Nov 26, 2009 10:38 pm    Post subject:
Reply with quote

Thanks for clear explanation Gary.
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 CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us