EViews doesn't give the expected result when a pagestruct command to extend a workfile page is executed within a subroutine with local smpl.
Try this:
Code: Select all
wfcreate a 2010 2015
series x = @runif(0, 1)
subroutine sub
local smpl
pagestruct(end=2020)
endsub
call subHowever, the values obtained by code, such as x[7], seems to be correct.
This bug, which appears both in EViews 8.1 and in EViews 9, is easy to avoid, though, by running the pagestruct command before the local smpl instruction.
Best regards,
Étienne
