Differences between revisions 1 and 2
Revision 1 as of 2020-01-15 17:37:53
Size: 694
Comment:
Revision 2 as of 2021-03-16 18:28:54
Size: 475
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Stata Logs = = Log Files =
Line 9: Line 9:
== Basic Logging == == Built-in Logging ==
Line 26: Line 26:
----



== 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)
}}}

Log Files

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


Built-in 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"


CategoryRicottone

Stata/Log (last edited 2025-10-24 17:27:01 by DominicRicottone)