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