Page 1 of 1
Error messages from programs with loops
Posted: Thu Oct 06, 2016 3:08 pm
by LindaR
I am using a loop to decompose multiple time series (using X13.SEATS) with permissible errors set to 1000 so it runs through all the series. For almost all the error messages I get in the program log the series are identified as SER{!I} is it possible to capture the actual series number(s)?
Re: Error messages from programs with loops
Posted: Thu Oct 06, 2016 3:22 pm
by EViews Gareth
Hard to say without knowing exactly what you are doing
Re: Error messages from programs with loops
Posted: Thu Oct 06, 2016 3:27 pm
by LindaR
Would sending you the program and an example of the program log help?
Re: Error messages from programs with loops
Posted: Thu Oct 06, 2016 4:55 pm
by EViews Gareth
Probably.
Re: Error messages from programs with loops
Posted: Thu Oct 06, 2016 6:02 pm
by LindaR
Hope so,the code and the program log are attached as is the final error message. The specs referenced in the program are at the end of the error message.
Re: Error messages from programs with loops
Posted: Fri Oct 07, 2016 5:30 am
by EViews Gareth
I can see no reason why EViews isn't reporting the series name, rather than ser{!i}, which is weird.
But I guess you could force it by recording it yourself. Off the top of my head, I think I would do something like:
Code: Select all
!errcount = @errorcount
'the x13 line here
!errcount2 = @errorcount
if !errcount2>!errcount then
logmsg !i
endif
And put a logmode +logmsg somewhere at the top.
Re: Error messages from programs with loops
Posted: Sun Oct 09, 2016 11:37 pm
by LindaR
Thanks Gareth, your suggestion worked - I now know which series are failing and why/how. All the best, Linda