Page 1 of 1

Command line execution

Posted: Mon Nov 08, 2010 2:33 am
by aguentsch
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

Command line execution

Posted: Mon Nov 08, 2010 8:16 am
by EViews Gareth
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