Posted: Mon May 02, 2005 7:59 am Post subject: Expiry Data Type After Assignment
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?
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;
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