Hi,

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"
But this time is a bit different as I want to add only the files returned by the lookfor_all command. I tried the following to capture the output to -local files- :

Code:
local files:  lookfor_all "*dta"
But this does not seem right.

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.