Skip to content

Instantly share code, notes, and snippets.

@kongscn
Created October 31, 2013 09:05
Show Gist options
  • Save kongscn/7246521 to your computer and use it in GitHub Desktop.
Save kongscn/7246521 to your computer and use it in GitHub Desktop.
Stata profile.do
**************************************
* Stata profile.do
**************************************
if "`c(os)'" == "Windows" {
sysdir set PLUS "`c(sysdir_stata)'ado/plus"
sysdir set PERSONAL "C:/Users/`c(username)'/stata/ado"
}
else {
sysdir set PLUS "~/stata/ado/puls"
sysdir set PERSONAL "~/stata/ado/personal"
}
log using stata/log/`: display %tCCCYY-NN-DD-HH-MM-SS ///
Clock("`c(current_date)' `c(current_time)'","DMYhms")', ///
name(default_log_file) text
//cmdlog using stata/log/`: display %tCCCYY-NN-DD-HH-MM-SS Clock("`c(current_date)' `c(current_time)'","DMYhms")'cmd, name(huha)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment