Control variables and program arguments (EV 6)
Posted: Sun Apr 25, 2010 9:26 am
Hi there,
I get error message when running the below code, although, strangely, two merged charts are created and aligned "outcome_rev_rev" and "outcome_rev_xpe". I thought, I can use string variables in a for loop, formed from program arguments. Maybe such an idea cannot work in general in EViews 6. Otherwise, it could be just some stupid mistake in my specification I am just overlooking.
The program arguments %1, %2, %3 are: gdp, rev, xpe
Many thanks for helping!!!
I get error message when running the below code, although, strangely, two merged charts are created and aligned "outcome_rev_rev" and "outcome_rev_xpe". I thought, I can use string variables in a for loop, formed from program arguments. Maybe such an idea cannot work in general in EViews 6. Otherwise, it could be just some stupid mistake in my specification I am just overlooking.
The program arguments %1, %2, %3 are: gdp, rev, xpe
Many thanks for helping!!!
Code: Select all
open C:\Zeviewsdirectory\chartscholeski.wf1
for %x {%1}_{%1} {%1}_{%2} {%1}_{%3} {%2}_{%1} {%2}_{%2} {%2}_{%3} {%3}_{%1} {%3}_{%2} {%3}_{%3}
graph outcome_{%x}.merge joint_{%x}_1 joint_{%x}_2 joint_{%x}_3 joint_{%x}_4 joint_{%x}_5 joint_{%x}_6 joint_{%x}_7 joint_{%x}_8 joint_{%x}_9 joint_{%x}_10
outcome_{%x}.align(6,1.5,1)
next
save C:\Zeviewsdirectory\chartscholeski.wf1
close chartscholeski