I would be grateful for helping with this: I want to run the same set of commands upon multiple workfiles (below I give just a fragment).
Code: Select all
for !j = 1 to 2
open C:\Zeviewsdirectory\country{!j}.wf1
open C:\Zeviewsdirectory\copiescharts.wf1
var var01.ls 1 3 gdp rev xpe
freeze(gdp_gdp_grx_{!j}) var01.impulse(20, se=a) gdp @ rev @ gdp rev xpe
copy gdp_gdp_grx_{!j} copiescharts::
save C:\Zeviewsdirectory\country{!j}.wf1
close country{!j}
next
save C:\Zeviewsdirectory\copiescharts.wf
close copiescharts
with the error message: GDP is not defined for var var01....var var01.ls 1 3 gdp rev xpe
What is strange, if I open the country1.wf1 or country2.wf1 and run the fourth line in interactive mode, it just produces the estimate. I am sorry, maybe I am too overworked. I attach the workfiles. Many thanks for a rescue!!!
