I need to make some operations with many Excel files with long names of the type "Saratov Region.xls" (I mean that names of these files contain one or more blank spaces).
I tried to write something like
global reglist = "Saratov Region Samara Region ..."
and then write
foreach var of global reglist {
import excel `var'.xls, clear
<other commands>
}
but Stata reads "Saratov", "Region" and so on as separate elements of the list, so this does not work.
I tried to write somthing like
global reglist = "Saratov Region" "Samara Region" ...
but Stata also treats "Saratov", "Region" and so on as separate elements of the list, and writes error meassage "invalid "Samara Region".
How should I define this list for this to work?