Include %filenameWithPath

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

ErikG
Posts: 78
Joined: Wed Jan 23, 2013 1:18 am

Include %filenameWithPath

Postby ErikG » Wed Dec 23, 2015 2:39 am

I'm having some trouble passing a string to include a file with a full path:

Code: Select all

WfCreate C:\temp\test.wf1  u 1
%s = "C:\temp\temp\hello\MyFile.prg"
Include %s



Generates an error, the file %s.prg is not found in the current directory:

G:\PRO\BAL\DRI\TEST\%S.prg not found on disk

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

Re: Include %filenameWithPath

Postby EViews Gareth » Wed Dec 23, 2015 9:03 am

You cannot use % variable in an include statement.

When running a program, EViews does all includes before anything else, so the % variable is not intialised at the time of the include.
Follow us on Twitter @IHSEViews


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 27 guests