Command line execution

For questions regarding programming in the EViews programming language.

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

aguentsch
Posts: 1
Joined: Mon Nov 08, 2010 2:12 am

Command line execution

Postby aguentsch » Mon Nov 08, 2010 2:33 am

Hi,

I have to integrate a couple of Eview7-Programs into a program flow that does not allow any user interaction. Therefore I call the programs from the command line like "eviews7.exe myprog.prg".

Unfortunately sometimes the programs run into an error that opens up a dialog box and stops the flow until an user clicks some button. Is there a way to suppress all user interaction? The optimal behavior in such situations would be that the programs exit eviews with some error code.

Kind regards
Alexander

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

Command line execution

Postby EViews Gareth » Mon Nov 08, 2010 8:16 am

You cannot return an error code (well you could with some complicated error handling in the EViews program).

You can stop error messages by setting the maximum error count to something very large with the setmaxerrs command


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests