Dear forum members,
my goal would be to save the matrix wk to wk_1995.txt; wk_1996.txt and so on. Unfortunately saving the value of the scalar `L' is not recognized by STATA and neither is renaming it to wk_`L'.
scalar L = 1995
forvalues L = 1995/2016 {
....
matrix list wk
mat2txt, matrix(wk) saving(C:\Users\Administrator\Desktop\Daten\2_Erge bnisse\wk_`L'.txt) title(wk_mf_ff) replace
scalar L = L+1
Thank you for the help!
Best Regards
Fabian
my goal would be to save the matrix wk to wk_1995.txt; wk_1996.txt and so on. Unfortunately saving the value of the scalar `L' is not recognized by STATA and neither is renaming it to wk_`L'.
scalar L = 1995
forvalues L = 1995/2016 {
....
matrix list wk
mat2txt, matrix(wk) saving(C:\Users\Administrator\Desktop\Daten\2_Erge bnisse\wk_`L'.txt) title(wk_mf_ff) replace
scalar L = L+1
Thank you for the help!
Best Regards
Fabian