Does foreach not work inside cd " "?
I tried the command below:
And Stata answered:
Once I try to do it manually, it works perfectly
I tried the command below:
Code:
local uf AC AM RO RR PA AP TO MA PI CE RN PB PE AL SE BA ES MG RJ SP PR SC RS MS MT GO DF foreach x of local uf { cd "C:\Users\Paula\Pesquisa\DADOS\dados_georreferenciados\CEPs_Censo_2010\`x'" }
Code:
unable to change to C:\Users\Paula\Pesquisa\DADOS\dados_georreferenciados\CEPs_Censo_2010`x' r(170);
Code:
. cd "C:\Users\Paula\Pesquisa\DADOS\dados_georreferenciados\CEPs_Censo_2010\AC" C:\Users\Paula\Pesquisa\DADOS\dados_georreferenciados\CEPs_Censo_2010\AC