How can I save the contents of the results window? | Stata FAQ

Stata does not allow you to save the output in the Results window through the
menu system. Stata does however
offer ways to capture the output and save it to another file. The methods discussed
in this page capture all of the output that appears in the Results window, if you want to copy selected
parts of the output, the method described in
How do I Copy Stata Output and Stata Graphs into Word? may
be more appropriate.

Which of the methods described below is more appropriate will depend on the situation. The advantage of the first method, using a log file, is
that a log file will capture all of the output from the time you open the file until
you close the file, regardless of how much output is produced. The second method, which
uses the translate command only captures the output currently in the scroll buffer
(i.e. what you can scroll up and see in the Results window), which might not include all of the output you
want. For information on how to increase the size of the scroll buffer, see
How can I make the Results window hold more results? The advantage of translate is that unlike a log file that has to be
opened before you run the commands, translate captures all of the output
that has already been produced.

Saving contents using a log file

One way to save all of the results from your Stata session, is to use a log
file. As mentioned above, a log file will include all the output produced while the log file is
open.

To open a log file called c:dissert.log, you can type the
following at the start of your Stata session:

log using c:dissert.log

Then, go ahead and run all of your commands. When you are done, you can type:

log close

The results of all of your commands will be saved in the log
file (for this example, c:dissert.log ).

Saving contents using the translate command

The translate command converts all of the output currently in your
Results window into a text file. As mentioned above, this is useful if you have
run a bunch of analyses and then realize you forgot to start a log file. In the
example below, we run a regression analysis and a summarize command. We
then use the translate command to output everything from the
Results window to a text file, called mylog.txt. The keyword is @Results,
which is to say everything from the Results window.Atthe
end, we use type command to show the content of mylog.txt. As you can
see, Stata literally dumps everything in the Results window to this file.