Let's say I have the following folder structure.
/foo
/bar1
code.do
/bar2
I want to run Stata in batch mode and create a log file inside / foo / bar 2. What kind of batch code do I need to execute?
I will give you examples that I tried and it did not work. Now the log file is created as stata.log inside / foo. Also, I would like to run Stata in batch mode with -b and not see all the output in my GUI.
stata-se < "/foo/bar1/code.do" > "/foo/bar2"
stata-se "/foo/bar1/code.do" "/foo/bar2"
stata-se do "/foo/bar1/code.do" "/foo/bar2"
stata-se -b do "/foo/bar1/code.do" "/foo/bar2"
source
share