Any command to clear the Eview's memory?

For questions regarding programming in the EViews programming language.

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

renjinlu
Posts: 14
Joined: Tue Jan 06, 2009 8:34 pm

Any command to clear the Eview's memory?

Postby renjinlu » Thu May 28, 2009 6:36 am

Hi, folks,

Coming back for knowledge again. Is there any command to clear the Eview's memory and let it forget everything (like "NEW" in GAUSS)?

If there is one, I can put at the top of the program and rerun the program again and again when testing it.

My current problem is: I used scenario.exclude to exclude some series from simulation at the last stage, but I do not want to exclude the series in earlier stages of the program. If I start the program afresh, it is fine. But to rerun it, the exclude options got carried into the "top" of the problem and everything get messed up.

If there is no such command, could you let me know how to "unexclude" the series please?

Thanks!

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

Re: Any command to clear the Eview's memory?

Postby EViews Gareth » Thu May 28, 2009 8:01 am

That's a somewhat nonsensical question.

When you run a program, everything that is program specific (i.e. program variables, subroutines etc...) are all cleared from memory as soon as the program exits.

Everything that is workfile specific remains in memory until you close the workfile.

renjinlu
Posts: 14
Joined: Tue Jan 06, 2009 8:34 pm

Re: Any command to clear the Eview's memory?

Postby renjinlu » Thu May 28, 2009 8:27 am

Not really.

Sometimes you want to rerun the program without exiting it. But thanks for telling me that such a command does not exist.

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

Re: Any command to clear the Eview's memory?

Postby EViews Gareth » Thu May 28, 2009 8:33 am

By "exit" I meant "finishes running". As soon as a program has finished running, every program variable is cleared. If you run that program again straight away, any program variables used in the previous run will be completely re-initialised, and will retain no information from the previous run.

Since EViews is not a procedural programming language, a "clear" doesn't make sense.

Perhaps the best thing for you to do is to re-open the workfile at the top of your program. Then you will be getting a fresh slate, as it were.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest