SPL question




I have an SP that takes a relative day and a time as input e.g.
('-7','16:30:45') and am using the following code to set a variable to a
datetime string

let p_cr_date = EXTEND(p_cr_day + p_add_days UNITS DAY, YEAR TO
SECOND)+INTERVAL(p_cr_time) HOUR TO SECOND;

This would expand to:- EXTEND(TODAY-7 UNITS DAY,YEAR TO
SECOND)+INTERVAL(16:30:45) HOUR TO SECOND

If I exclude the INTERVAL part of the code it all works but if I include it
I get a syntax error.

My question is, can I do this (or something similar) in SPL?


Regards

Colin

There are 10 types of people in the world, those that understand binary and
those that don't
sending to informix-list
.



Relevant Pages

  • Re: Auto selecting alternate rows
    ... Colin ... >> Using Excel I import external data from a text document. ... I can manually delete all the empty rows ...
    (microsoft.public.excel)
  • Re: AD corruption due flost flush on DNS record
    ... Regards, Colin ... > So often times, index corruption is fixed by an offline defrag, simply ... >>> Ntdsutil files compact to ... ...
    (microsoft.public.windows.server.active_directory)
  • Re: PC speaker sounds through a sound card
    ... PAL.....especially MPT's remark stamped Feb 21, 3:31 pm and Colin ... Barnhorst's subsequent reply. ... Regards, ... Patti MacLeod ...
    (microsoft.public.windowsxp.newusers)
  • Re: running a query in a loop
    ... > As regards your code... ... I can only see one place where it will definitely choke, ... > The word 'date' is a Reserved Word in Access, ... I doubt that Access would call it a syntax error. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Percentage analysis
    ... But it says Syntax error. ... > percentage against the "All Customers" member. ... >> I want to show Percentage analysis on basis of # of passengers per City. ... >> Regards, ...
    (microsoft.public.sqlserver.olap)