Delete in TI by current year
Posted: Thu May 07, 2009 2:20 pm
Hi
I would like to delete from a cube but only data from current year. I can't find a function returning current year (v8.4).
I have tried something like this:
-----------------------------------------------
ODBCOpen('STAMDB', '', '');
SubsetCreate('YEAR', 'NU');
a=ODBCOutput('STAMDB', 'select year(getdate())');
SubsetElementInsert('YEAR', 'NOW',a,1);
ODBCClose('STAMDB');
-----------------------------------------------
but I can't get it working.
Please help me
Thanks in advance.
/Anders
I would like to delete from a cube but only data from current year. I can't find a function returning current year (v8.4).
I have tried something like this:
-----------------------------------------------
ODBCOpen('STAMDB', '', '');
SubsetCreate('YEAR', 'NU');
a=ODBCOutput('STAMDB', 'select year(getdate())');
SubsetElementInsert('YEAR', 'NOW',a,1);
ODBCClose('STAMDB');
-----------------------------------------------
but I can't get it working.
Please help me

/Anders