string variable used in path reference
Posted: Fri Apr 22, 2011 4:25 pm
I'm trying to use a string variable to indicate the directory path for opening a file. But it doesn't work. But if i specify the whole path clearly and without the string variable, it works.
Can you help?
Is there any good reference book for Eviews programming for beginner?
thanks!
works:wfopen \\sac-psas-01\econ\riskindex\RI_V3.1\data\2011Q1\ur_nsa_eviews.csv
doesn't work:
%dir="2011Q1"
wfopen \\sac-psas-01\econ\riskindex\RI_V3.1\data\%dir\ur_nsa_eviews.csv
Can you help?
Is there any good reference book for Eviews programming for beginner?
thanks!
works:wfopen \\sac-psas-01\econ\riskindex\RI_V3.1\data\2011Q1\ur_nsa_eviews.csv
doesn't work:
%dir="2011Q1"
wfopen \\sac-psas-01\econ\riskindex\RI_V3.1\data\%dir\ur_nsa_eviews.csv