Pausing a program

For questions regarding programming in the EViews programming language.

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

acraigpgpf
Posts: 8
Joined: Mon Jan 09, 2012 8:53 am

Pausing a program

Postby acraigpgpf » Thu Jan 12, 2012 7:40 am

Hi all,

I am working with a model with 75 exogenous variables that are pulled from a database that my firm maintains. I would like to add in a quality assurance step where all of the exogenous variables are visually inspected to rule out weird data processing errors. I have a loop that produces line graphs of all of the variables:
%exogenous = @wlookup("*_cbo", "series")

for %2 {%exogenous}

smpl 2010 2085

line {%2}

next
Is there a way to pause the program execution after the production of each graph? Should I be using a spool instead?

Thanks!

acraigpgpf
Posts: 8
Joined: Mon Jan 09, 2012 8:53 am

Re: Pausing a program

Postby acraigpgpf » Thu Jan 12, 2012 7:54 am

Also, an addendum. My model identifies exogenous variables with the suffix "_cbo." I have noticed that my model divides variables into endogenous and exogenous. Is there an object type for exogenous variables that I can use in the @wlookup function instead of "series"?

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

Re: Pausing a program

Postby EViews Gareth » Thu Jan 12, 2012 8:38 am

There is a sleep command, that will pause a running program, however it puts EViews to sleep, so the user cannot interact with it. There is no way to provide an interactive pause.

Since whether a series is exogenous or not is based upon the definition of the model object, and not based on the workfile (a series could be exogenous in one model, and endogenous in another!), you cannot use @wflookup to determine whether a series is exogenous or not.

However the model object does have a makegroup proc that lets you make a group containing all of the exogenous or all of the endogenous variables.

acraigpgpf
Posts: 8
Joined: Mon Jan 09, 2012 8:53 am

Re: Pausing a program

Postby acraigpgpf » Thu Jan 12, 2012 8:42 am

So the best way to run this sort of a QA step is with a spool object?

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

Re: Pausing a program

Postby EViews Gareth » Thu Jan 12, 2012 8:53 am

Putting it into a spool isn't going to let you inspect each graph whilst the program is running, either.

acraigpgpf
Posts: 8
Joined: Mon Jan 09, 2012 8:53 am

Re: Pausing a program

Postby acraigpgpf » Thu Jan 12, 2012 9:27 am

But at least with the spool I wan't have a cascade of tiles.

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

Re: Pausing a program

Postby EViews Gareth » Thu Jan 12, 2012 9:30 am

You could make individual graph objects to achieve that goal too, but yeah, using a spool will stop the cascade.

Kavorka
Posts: 47
Joined: Mon Nov 30, 2009 6:06 am

Re: Pausing a program

Postby Kavorka » Wed Aug 31, 2016 6:19 am

This is a somewhat different question than the previous ones, but I put it here anyway.

If I run a Monte Carlo simulation program that takes me e.g. 10 hours, and I would like to temporarily pause the simulation anywhere in the middle (since maybe I need the computer for something else that requires processor power), and then later I want to resume the same simulation for remaining hours. Is that possible? (I do not want to push escape and start from the beginning if that is possible, I want to resume after the break). /P

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

Re: Pausing a program

Postby EViews Gareth » Wed Aug 31, 2016 8:13 am

No.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests