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 » Adding INTERVAL to CURRENT_TIMESTAMP

Post new topic  Reply to topic
 Adding INTERVAL to CURRENT_TIMESTAMP « View previous topic :: View next topic » 
Author Message
michaelharris
PostPosted: Fri Jul 14, 2006 12:12 pm    Post subject: Adding INTERVAL to CURRENT_TIMESTAMP Reply with quote

Novice

Joined: 09 Jun 2006
Posts: 20

Please revive my dead brain. I know there are a hundred other ways to accomplish what I'm trying to do, but I refuse to be stumped on this one.

The WMB 6.0 toolkit is reporting "Syntax error. Valid options include: DAY HOUR MINUTE MONTH SECOND YEAR" on this ESQL statement:

DECLARE ReOpenSwitchDateTime TIMESTAMP CURRENT_TIMESTAMP + CAST(Environment.Variables.TimeTicketInterval AS INTERVAL);

where

SET Environment.Variables.TimeTicketInterval = CAST(INTERVAL '15' MINUTE AS CHARACTER);


The DECLARE is inside a reusable subflow and I'm trying to design for flexibility in the main flow.

Thanks,
Michael
Back to top
View user's profile Send private message
jbanoop
PostPosted: Fri Jul 14, 2006 11:33 pm    Post subject: Reply with quote

Chevalier

Joined: 17 Sep 2005
Posts: 401
Location: SC

From the help:
Quote:
An interval literal is defined by the syntax:

INTERVAL <interval string> <interval qualifier>


so try
DECLARE ReOpenSwitchDateTime TIMESTAMP CURRENT_TIMESTAMP + CAST(Environment.Variables.TimeTicketInterval AS INTERVAL MINUTE);

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Adding INTERVAL to CURRENT_TIMESTAMP
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.