I have two folders with exactly similar file names inside them. I would like for these files to be appended with each other.
For example, interview__33 from Folder v2 should be appended with interview__33 from Folder v3.
I used this codes:
global v3 "C:\Users\lm2\Desktop\Raw Files\20190816"
global v2 "C:\Users\lm2\Desktop\Raw Files\v2"
global temp ""C:\Users\lm2\Desktop\Raw Files\20190816\temp"
cd "$v2"
local dta: dir . files "*.dta"
foreach f of local dta {
use "`f'", clear
append using "$v3\`f'"
save "$temp\`f'", replace
}
The error is: r(601);
File C:\Users\lm2\Desktop\Raw Files\20190816 not found
Related Posts with Appending Files with Similar Name but From Different Folder
gtfpch and teddf - Malmquist–Luenberger productivity indexHi I have been trying to use the gtfpch command in STATA 17, but I am continually returning the sam…
Problems collect commandHi all, I would like to use the collect command to customise how my regression table looks. However…
Running time for QUAIDSHi, I'm currently running QUAIDS estimation for 300K households and 215 food items. I wonder how lon…
mrgraph error - variables R _variables do not uniquely identify the observationsI am trying to get a graph for a multiple response question. I have read the resource and the mrtab …
New version of wridit on SSCThanks as always to Kit Baum, a new version of the wridit package is now available for download from…
Subscribe to:
Post Comments (Atom)
0 Response to Appending Files with Similar Name but From Different Folder
Post a Comment