Command Reference : Command Reference
  
 
run
Run a program.
The run command executes a program. The program may be located in memory or stored in a program file on disk.
Syntax
run(options) [path\]prog_name(prog_options) [%0 %1 …]
If you wish to pass one or more options to the program, you should enclose them in parentheses immediately after the filename. If the program has arguments, you should list them after the filename.
EViews first checks to see if the specified program is in memory. If the program is not located, EViews then looks for the program on disk in the current working directory, or in the specified path. The program file should have a “.PRG” extension, which you need not specify in the prog_name.
Options
 
integer (default=1)
Set maximum errors allowed before halting the program.
c
Run program file without opening a window for display of the program file.
verbose / quiet
Verbose mode in which messages will be sent to the status line at the bottom of the EViews window (slower execution), or quiet mode which suppresses workfile display updates (faster execution).
v / q
Same as [verbose / quiet].
ver4 / ver5
Execute program in [version 4 / version 5] compatibility mode.
this=object_name
Set the _this object for the executed program. If omitted, the executed program will inherit the _this object from the parent program, or from the current active workfile object when the exec command is issued from the command window.
Examples
run(q) simul(h=2) x xhat
quietly runs a program named “Simul.prg” from the default directory using options string “h=2” and arguments %0=X and %1=XHAT.
Since run is a command, it may also be placed in a program file. You should note that if you put the run command in a program file and then execute the program, EViews will stop after executing the program referred to by the run command. For example, if you have a program containing:
run simul
print x
the print statement will not be executed since execution will stop after executing the commands in “Simul.prg”. If this behavior is not intended, you should consider using the exec command or an include statement.
Cross-references
See “Executing a Program” for further details.
See also exec and include.