Page 1 of 1

text box to keep track of program files

Posted: Tue Oct 27, 2015 7:13 am
by trainee
Hi guys,

I have a stack of program files running one after another (using the "include" function). The problem is when something crashes it is sometimes hard to know where (which program file). Is there a way to set up a text box or something to that effect that tells you which program files were successfully run and/or where E-views exactly crashed?

Anybody with experience with this?

Thanks

Re: text box to keep track of program files

Posted: Sat Nov 21, 2015 7:33 pm
by xprimexinverse
The commands below might be useful. Consult the EViews documentation for the specifics.
  • logmode
  • logmsg
  • logsave
As an example, if I'm using the exec command to run a number of programs, I usually put something like the code below into my programs. In this way, I can keep track of what's going on. The setmaxerrs statement also comes in handy.

Code: Select all

logmode all logmsg Starting to execute: ProgramName.prg ' - - - commands - - - logmsg Starting to execute first code chunk... ' - - - commands - - - logsave(type=rtf) LogFileName.text