Information, Technology & Consulting

Stata Log Files


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:

  1. Click the File menu and choose Log; or
  2. 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.

Research Computing
Scientific and Research Software
Last updated: 
Thursday, November 16, 2017

If you have questions or need further information, contact your department's IT support office, or contact the IT Service Desk via email at [email protected], via phone at 603-646-2999 or walk in to see them in Baker/Berry 178J.

Information, Technology & Consulting