ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Expiry Data Type After Assignment

Post new topic  Reply to topic
 Expiry Data Type After Assignment « View previous topic :: View next topic » 
Author Message
albitkw
PostPosted: Mon May 02, 2005 7:59 am    Post subject: Expiry Data Type After Assignment Reply with quote

Novice

Joined: 02 May 2005
Posts: 15
Location: Pittsburgh, PA

Messages received by a message flow compute node may have MQMD.expiry set to a specific expiration time by the sending application (or a previous compute node as GMTTIMESTAMP), or they may default to unlimited (-1) when received by the queue manager.

How can I check to see what the current expiry value is using esql? If I reference expiry as an Integer variable, I get a 'wrong type exception' when it is set to expire. If I use expiry like a non-integer data type, I get a similar error when expiry is set to -1, unlimited.

Is there a way to check the data type of expiry before assigning its value to a local variable?
Back to top
View user's profile Send private message
Tibor
PostPosted: Mon May 09, 2005 4:23 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

Try this:
Code:
SET ExpInterval   = CASE
   WHEN CAST(InputRoot.MQMD.Expiry AS CHARACTER ) = '-1'  THEN -1
   ELSE CAST(((InputRoot.MQMD.Expiry - InputRoot.Properties.CreationTime) SECOND * 10) AS INTEGER)
   END;

Tibor
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Expiry Data Type After Assignment
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.