Stata
Products Purchase Support Company
Search
   >> Home >> Resources & support >> FAQs >> profile.do

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
FAQs
What's new?
Statistics
Data management
Graphics
Programming Stata
Mata
Resources
Internet capabilities
Stata for Windows
Stata for Unix
Stata for Macintosh
Technical support
Resources & support
FAQs
Technical support
NetCourses
Short courses
Users Group meetings
Statalist
Links
Software updates
Software archives
Customer service
Manuals & supplements
Stata Journal
STB
Stata News
Stata Automation
Plugins

Site overview
Products
Resources & support
Company
Site index

© Copyright 1996–2008 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index