Hello:
I'm trying to figure out a way to archive local copies of my .do scripts as I run them. At the end of every one of my do files, I want to run a line of code that kicks out a version of the script stamped with the day I was working on it. My current code looks like this:
Is there a command built into STATA that allows for me to save the do file?
Thank you!
I'm trying to figure out a way to archive local copies of my .do scripts as I run them. At the end of every one of my do files, I want to run a line of code that kicks out a version of the script stamped with the day I was working on it. My current code looks like this:
Code:
local today: di %tdCYND date(c(current_date),"DMY") <body of script> <dosavecommand> "`archive'\file name `today'.do", replace
Is there a command built into STATA that allows for me to save the do file?
Thank you!
Comment