Passing on program argument to a string var
Posted: Tue Jan 27, 2009 10:26 am
Hi, I have a simple question:
Suppose I want to pass on the value of a program argument to a string variable, how could I do that?
for Example
I am running a program called "diag" with an argument "CPI" (there are many other candidates, so I need to have a program variable). In the program, I want to make this explicit instead of keeping on using {%0}, so I have an extra line
%name={%0}
Hoping that I can pass on the string value of "CPI" to %name.
After typing in "run diag CPI", Eviews gives me an error message saying that this is illegal. Any idea why this is so? Thanks!
Suppose I want to pass on the value of a program argument to a string variable, how could I do that?
for Example
I am running a program called "diag" with an argument "CPI" (there are many other candidates, so I need to have a program variable). In the program, I want to make this explicit instead of keeping on using {%0}, so I have an extra line
%name={%0}
Hoping that I can pass on the string value of "CPI" to %name.
After typing in "run diag CPI", Eviews gives me an error message saying that this is illegal. Any idea why this is so? Thanks!