Variable within wfsave statement

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

bmlswish
Posts: 2
Joined: Tue Jun 24, 2014 10:58 am

Variable within wfsave statement

Postby bmlswish » Tue Jun 24, 2014 11:00 am

Hi all,

I am trying to use a for loop to execute hundreds of file statements. The code is as follows:

for %y atl aus bal bos
wfsave G:\Research2\MAIN\Rent_Growth_Process\Retail_Rent_Growth_Process\Retail_Inputs\%y_inputs_rg.csv @keep %y_inputs_rg
wfsave G:\Research2\MAIN\Rent_Growth_Process\Retail_Rent_Growth_Process\Retail_Inputs\%y_inputs_demand.csv @keep %y_inputs_demand
next

This is only a sample size of four. With this statement, the %y for atl would turn into "atl" within the file statement. How can I solve this? thank you all in advance

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Variable within wfsave statement

Postby EViews Gareth » Tue Jun 24, 2014 11:35 am

Use {%y}


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests