How can I automatically execute certain commands every time I start Stata?
| Title |
|
profile.do |
| Author |
Jeremy B. Wernow, StataCorp |
| Date |
March 2001; modified April 2005 |
If you want to execute certain commands automatically every time you start
Stata, you can put these commands into a file named profile.do, which
is a do-file that Stata executes every time that it starts. Once started,
Stata looks for this file and executes every command in the file before you
begin entering commands. If you are familiar with Unix, this feature is
similar to the .cshrc file.
See [GSW] C.3 Executing commands every time Stata is started or
[GSM]/[GSU] C.1 Executing commands every time Stata is started
for information on where to save the profile.do file so Stata can find
it. Type help
profile in Stata for more information.
An example of a typical profile.do file is
set memory 5m
set logtype text
|