EViews doesn't give the expected result when a pagestruct command to extend a workfile page is executed within a subroutine with local smpl.
Code: Select all
wfcreate a 2010 2015
series x = @runif(0, 1)
After running this code, the total number of observations displayed in the workfile page is wrong and, when the series is open, values displayed are incorrect : where extended years should appear, the first year of the original series and the corresponding value are repeated.
However, the values obtained by code, such as x, 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.