I am searching for (lookfor_all from ssc) all datasets in a directory that contain the target variables and then append them into one dataset. I was previously suggested to the start with the following to combine all datasets in the directory:
Code:
local files: dir . files "*dta"
Code:
local files: lookfor_all "*dta"
My second option was to load the datasets one by one and store them as different frame names (a, b, c, d...) and then apply the frameappend (ssc) command, but it also returns error.
Code:
frameappend a b c d
Please let me know if there is any way to do this, adding a selected list of files into local.
Thank you.
0 Response to How to capture the results of lookfor_all to local files?
Post a Comment