Using Replacement variables

For questions regarding programming in the EViews programming language.

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

niluki
Posts: 11
Joined: Wed Mar 30, 2011 3:24 am

Using Replacement variables

Postby niluki » Thu May 19, 2011 8:35 am

Hi,

I have a problem in using replacement variables for the path in the run command.

If I run this piece of code, it gives out an error:
%dir = "C:/TestE_Views/testcode"
run {%dir}

but equivalently the following code runs fine
run "C:/TestE_Views/testcode"

What am I doing wrong?
Is there a workaround this?

Any help is greatly appreciated!
thank you!

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

Re: Using Replacement variables

Postby EViews Gareth » Thu May 19, 2011 8:48 am

Code: Select all

%dir = "c:/temp/test" run {%dir}
Works for me, and I ran it in EViews 7, EViews 6 and EViews 5.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests