text box to keep track of program files

For questions regarding programming in the EViews programming language.

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

trainee
Posts: 38
Joined: Fri Jun 13, 2014 12:59 pm

text box to keep track of program files

Postby trainee » Tue Oct 27, 2015 7:13 am

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

xprimexinverse
Posts: 41
Joined: Fri Sep 18, 2015 11:41 am
Location: Dublin, Ireland
Contact:

Re: text box to keep track of program files

Postby xprimexinverse » Sat Nov 21, 2015 7:33 pm

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


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests