Page 1 of 1

WFSAVE Question

Posted: Tue Oct 31, 2017 9:15 am
by BCNAV
Sorry for this silly question. I have been away from EViews for a while and am now porting some V9 programs over to V10. My programs all work except for my WFSAVE commands. I have:

!annual1=2000
!annual2=2018
wfcreate random_walk_{!year}.{%m} u !annual1 !annual2

code here for forecasting

wfsave(2) R:\Traffic Forecasting\EViews\Workfiles\Stochastic\random_walk_{!year}.{%m}.wf1


This wfsave will not put my work file, which is random_walk_{!year}.{%m} in the right folder, which is R:\Traffic Forecasting\EViews\Workfiles\Stochastic . It is creating a Traffic.wf1 file in R:\


Thanks...

Re: WFSAVE Question

Posted: Tue Oct 31, 2017 9:27 am
by BCNAV
It would seem that EViews still does not like the spaces in the directory names. Is there a workaround for this?

Re: WFSAVE Question

Posted: Tue Oct 31, 2017 9:39 am
by EViews Gareth
You have to put quotes around paths with spaces.

Re: WFSAVE Question

Posted: Tue Oct 31, 2017 10:38 am
by BCNAV
I have tried to no avail....where would they go with the wfsave:

wfsave(2) R:\Traffic Forecasting\EViews\Workfiles\Stochastic\random_walk_{!year}.{%m}.wf1

If I put quotes around the whole thing then _{!year}.{%m} comes out as _{!year}.{%m} and not, say 2017.10

Re: WFSAVE Question

Posted: Tue Oct 31, 2017 11:08 am
by EViews Gareth

Code: Select all

%path = "R:\Traffic Forecasting\EViews\Workfiles\Stochastic\random_walk_" + @str(!year) + "." + %m + ".wf1" wfsave(2) %path