Using Stata for Survey Data Analysis
Minot
Page 19
if you use an existing file name but do not say “replace” or “append”,
Stata will give an error
message that the file already exists
log files in text format can be opened with Wordpad, Notepad,
the DOS editor, or any word
processor., but the file will not have any formatting (e.g. no colors, bold, italics, or
underlines)
smcl files have formatting (bold, colors, etc) but can
only be opened with Stata
smcl format is the default
log off
This command temporarily turns off the logging of output, so that any subsequent output is
not copied
to the log file. This is useful if you want to save some of the output but not all. “Log off” only works
after a “log using command.”
log on
This command is used to restart the logging, copying any new output to the log file that was already
defined. “Log on” only works after a “log using” and a “log off” command.
log close
This command is used to turn off the logging and save the file. How are “log off” and “log close”
different? “Log off” allows you to turn it back on easily with “log on,”
continuing to use the same
log file. After a “log close” however, the only way to start logging again is with “log using.”
Do'stlaringiz bilan baham: