Created
January 20, 2016 02:38
-
-
Save masnick/23275ed6b208c82fd3f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cap log c | |
clear | |
set more off | |
cd "/path/to/folder/" | |
local files : dir "`c(pwd)'" files "*.dta" | |
clear | |
foreach f in `files' { | |
clear | |
di _newline in red "Processing dataset: `f' " | |
use `f', replace | |
compress | |
save, replace | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment