Page 1 of 1

Deleting temporary series and table?

Posted: Mon Oct 20, 2014 4:40 pm
by Lakey
Hi there

How can I delete the temp series and table created by this code? Obviously these series are required in the if sections, but I am running this for a few hundred series and do not wish to keep each temp series and table once the testing is completed.
%temptb = @getnextname("_temptb")
%temps = @getnextname("_tempser")
series {%temps} = ser!i
freeze({%temptb }) {%temps}.uroot(kpss)
!lm = @val({%temptb }(7,5))
!crit = @val({%temptb }(9,5))
d {%temptb}
!diff = 0
if !lm>!crit then
for !k=1 to 3
{%temps} = d(ser!i,!k)
freeze({%temptb}) {%temps}.uroot(kpss)
!lm = @val({%temptb}(7,5))
!crit = @val({%temptb}(9,5))
if !lm<!crit then
!diff=!k
!k=4 'force break out of loop
endif
next
endif


Many thanks

Re: Deleting temporary series and table?

Posted: Mon Oct 20, 2014 5:47 pm
by EViews Gareth

Code: Select all

delete {%temptb} delete {%temps}