Replacement variable in double quoted string
Posted: Fri Jan 28, 2011 11:37 am
Hello,
I'm having trouble getting Eviews to recognize my workfile's name, which contains a replacement variable, in the "open" and "save" commands. I realize that it's expecting a string in double quotes, but I don't understand why this generates an error (nor how I should be expressing the filename).
%var = jan_2011_update
open "data_file_"+%var+".wf1"
....[program code]....
wfsave(2) "data_file_"+%var+".wf1"
Many thanks,
R.
I'm having trouble getting Eviews to recognize my workfile's name, which contains a replacement variable, in the "open" and "save" commands. I realize that it's expecting a string in double quotes, but I don't understand why this generates an error (nor how I should be expressing the filename).
%var = jan_2011_update
open "data_file_"+%var+".wf1"
....[program code]....
wfsave(2) "data_file_"+%var+".wf1"
Many thanks,
R.