Lecture 4 updates - "run" vs "do"

Lecture 4 updates - "run" vs "do"

by Crystal Langlais -
Number of replies: 0

Hi All, 

In lecture 4, we present the "run" command for use in calling and running do-files from within another do file. 

A couple of students were having issues with their log files being blank when using "run".   To correct this issue, you can use the command "do" instead of "run" and it should create output in your logs.  

If you are curious what is happening, Stata has updated its commands as follows: 

"run quietly" as introduced in lecture is now "run" ("run" runs without output now without the need to specify "quietly").  So if you use "run" now, the output is held and thus the log file is blank. 

"run" as introduced in lecture is now "do". So if you use "do", the output appears and thus the log file populates.