save `outname', emptyok // file to hold resultsĪ little experimentation tells me that Stata is never receiving the two arguments when I run the program in batch mode. Stata starts up, but it terminates with the following error. Stata has another FAQ about batch mode.Ĭombining the information from these webpages, I type the following at my Unix prompt: $ nohup stata -b do program.do filename.csv result.dta & The program is long, however, so I want to run it in batch mode. When I run this command from within Stata, everything works fine. Insheet using `inname', comma clear names caseĪccording to the FAQ, this script can be run using do filename.csv result.dta. Save `outname', emptyok // file to hold results My do file looks like this: * program.do : Program to fetch information from main dataset A helpful FAQ from Stata describes that arguments can be passed to do files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |