Dartmouth Research Computing & Data (RCD) logo
  • Home 
  • HPC 
  • AI 
  • Services 
  • Status 
  • Blog 
  • Events 
  • About Us 

  •   Search this site
  •  
  1.   Statistics Software
  1. Home
  2. Research Software
  3. Statistics Software
  4. Stata - Log Files

Stata - Log Files

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:

  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.

 Stata - Graphing
Stata - Potential Issues 
Copyright © 2025 Dartmouth Research Computing & Data | Powered by Hinode.
Dartmouth Research Computing & Data (RCD)
Code copied to clipboard