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 » WebSphere Message Broker (ACE) Support » Use of INTERVAL in 2.0.1

Post new topic  Reply to topic
 Use of INTERVAL in 2.0.1 « View previous topic :: View next topic » 
Author Message
Deeko
PostPosted: Tue Feb 26, 2002 6:49 am    Post subject: Reply with quote

Acolyte

Joined: 16 May 2001
Posts: 72
Location: Edinburgh, UK

Hi...I need to subtract hours and mins from the current time but am failing miserably! I think I need to use INTERVAL but it won't work for any variable I declare (of type INTERVAL)! Does INTERVAL work with variables? It seems fine if I use INTERVAL '60' MINUTE!

Regards,

Derek.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Marek
PostPosted: Mon Aug 02, 2004 1:24 am    Post subject: Reply with quote

Apprentice

Joined: 30 Jun 2004
Posts: 32
Location: Edinburgh

Derek my old chum hope you are keeping well ... it's a few years on ... but here's the answer for what it's worth:

set result = CURRENT_DATE + CAST(variable AS INTERVAL DAY);
Back to top
View user's profile Send private message
Deeko
PostPosted: Mon Aug 02, 2004 1:30 am    Post subject: Reply with quote

Acolyte

Joined: 16 May 2001
Posts: 72
Location: Edinburgh, UK

marat,

Thanks for that....I can finally implement that project now!!

Anyway....I gave up at the time and passed all my date manipulations into UDB as it's much more powerful!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Use of INTERVAL in 2.0.1
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.