Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2020-01-15 17:37:53
Size: 694
Comment:
Revision 5 as of 2023-06-07 20:25:05
Size: 516
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Stata Logs = ## page was renamed from Stata/LogFiles
= Log Files =
Line 9: Line 10:
== Basic Logging == == Built-in Logging ==
Line 26: Line 27:
----



== 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 2023-06-09 13:49:49 by DominicRicottone)