At IU, how do I use Stata from a Unix system?
At Indiana University, Stata/SE is available on Libra (running IBM AIX) and Quarry (running Linux). You can run Stata in interactive mode, non-interactive mode, or GUI mode using the X Window System.
Interactive mode
To access Stata/SE in interactive mode, at the system prompt, enter:
stataAt the Stata prompt ( . ), enter your
command line, and then press Enter to execute the
command.
To terminate the session, enter exit .
Non-interactive (batch) mode
To run a job in non-interactive mode, at the system prompt, enter:
stata -b do your_do_file
Replace your_do_file with the appropriate Stata
.do file. If a .do file is successfully
executed, the output will be written to a log file (input file with a
.log extension) in the default directory.
GUI (X Window System) mode
To use Stata in GUI mode, you need to have an X Server running on your computer. If you are using a version of Windows, use an X Server such as Exceed to open an X terminal from Quarry (such as xterm).
To access Stata in the X Window System, at the X terminal prompt, enter:
xstataThis will have an interface similar to the Microsoft Windows or the
Mac OS environment. To terminate the session, enter exit .
Stata in GUI mode does not support non-interactive (batch) job processing. To submit a Stata job for batch processing to the Libra cluster, see On the Libra Cluster, how do I submit a Stata batch job?
For further assistance with Stata, visit the Stat/Math Center Statistical Software Support page.
For more information about statistical and mathematical software, email the UITS Stat/Math Center, visit the center's web page, or phone 812-855-4724 (IUB) or 317-278-4740 (IUPUI). The center is located in Bloomington at 410 N. Park Avenue, and is open for consultation by appointment Monday-Friday 9am-5pm.
Last modified on May 01, 2008.






