EViews does an unexpected substitution using the fetch or copy commands with series in remote databases containing the '%' symbol (fortunately, such series are not very common), if it contains within it the name of a control variable. Best viewed through an example.
The following:
Code: Select all
%y = "test"
fetch(d=uscen) dsr%yd.q
Will generate an error message: USCEN::DSR"TEST"D.Q was not found in "FETCH(D=USCEN) DSR"TEST"D.Q".
The '%y' of 'dsr%yd.q' has unexpectedly been replaced by the value of '%y'. The same happens using the copy command instead. A similar error would happen if '%yd' = "test"' was used instead of '%yd = "test"', since '%yd' is also included in 'dsr%yd.q', but defining '%ya' would avoid the problem. Isolating the request in a local subroutine doesn't help.
The only "solution" I've found is to avoid using control variables' names that would be a part of such a series name in the whole program. Not a major bug since it's relatively easy to work around, but I found it worth to submit it nonetheless.
Best regards,
Étienne