Page 1 of 1

Include %filenameWithPath

Posted: Wed Dec 23, 2015 2:39 am
by ErikG
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

Re: Include %filenameWithPath

Posted: Wed Dec 23, 2015 9:03 am
by EViews Gareth
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.