Body
Details
Log files keep a record of the command statements you enter and Stata's output. Specifying a filename saves the log to a file; saving as a log format rather than the default SMCL format will allow you to open the log in other applications (such as Microsoft Word or Notepad).
A log file can be opened or started in two ways:
- Click the File menu and choose Log; or
- Use the log command. It is wise to open a log file at the beginning of a session, turning it on or off as you need to save commands and results.
The replace option overwrites the log file.
Append adds to it.
On or off option turns the logging on or off in the middle of a session.
The close option closes the log file.
Stata manuals are available for reference in the Baker/Berry Library.