Page 1 of 1

Including %program

Posted: Fri Apr 03, 2009 1:56 pm
by fmgoto
Hey, is it possible to include sub-programs whose file name is defined as a string, such as %program? Thanks in advancde, Fabio

We are trying to work with:

%program = "" + %path + "/" + %filename + ""
include %program

Re: Including %program

Posted: Fri Apr 03, 2009 2:04 pm
by EViews Gareth
Unfortunately not.

The include statement is parsed by EViews before any other part of the program. Thus it is parsed before any string variables have been declared. Thus EViews won't recognise that string variable as being valid when it is parsing the include statement.