Stata command line arguments in batch mode
A helpful FAQ from Stata describes that arguments can be passed to do files. My do file looks like this: * program.do : Program to fetch information from main dataset args inname outname save `outname', emptyok // file to hold results insheet using `inname', comma clear names case // a bunch of processing save `outname', replace According to the FAQ, this script can be run using do filename.csv result.dta . When I run this command from within Stata, everything works fine. The program is long, however, so I want to run it in batch mode. Stata has another FAQ about batch mode. Combining the