I try to process my data files, calling them in a loop, but I get an error message r(601) saying that the file cannot be found. The files do exist in the file path provided. I think it concerns the combination of locals in the file's name. Any clue to solve it?
local file main spouse all
local year 2016 2015
foreach i in `file' {
foreach j in `year' {
use "I:\project_charles_nick\data\`i'_`j'.dta" , clear
........................
.......................
}
}
local file main spouse all
local year 2016 2015
foreach i in `file' {
foreach j in `year' {
use "I:\project_charles_nick\data\`i'_`j'.dta" , clear
........................
.......................
}
}
Comment