Stata Logs

Stata outputs to a terminal emulator. Output can be recorded into a markup file, which can be rendered into file formats including raw text.


Basic Logging

log using "path/to/file", replace

// do something

log off
di "Rather than running commands `quietly`, temporarily turn off logging.
log on

// do something else

log close
translate "path/to/file.smcl" "path/to/file.log"


Listing

The list command abbreviates variables and applies formats to data. To override the default abbreviation limit of 8 characters, use:

list very_long_variable_name, abbrev(50)


CategoryRicottone