Deleting temporary series and table?

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

Lakey
Posts: 3
Joined: Tue Oct 14, 2014 5:19 pm

Deleting temporary series and table?

Postby Lakey » Mon Oct 20, 2014 4:40 pm

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Deleting temporary series and table?

Postby EViews Gareth » Mon Oct 20, 2014 5:47 pm

Code: Select all

delete {%temptb} delete {%temps}


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests