Error messages from programs with loops

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

LindaR
Posts: 10
Joined: Thu Oct 06, 2016 2:42 pm

Error messages from programs with loops

Postby LindaR » Thu Oct 06, 2016 3:08 pm

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)?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Error messages from programs with loops

Postby EViews Gareth » Thu Oct 06, 2016 3:22 pm

Hard to say without knowing exactly what you are doing

LindaR
Posts: 10
Joined: Thu Oct 06, 2016 2:42 pm

Re: Error messages from programs with loops

Postby LindaR » Thu Oct 06, 2016 3:27 pm

Would sending you the program and an example of the program log help?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Error messages from programs with loops

Postby EViews Gareth » Thu Oct 06, 2016 4:55 pm

Probably.

LindaR
Posts: 10
Joined: Thu Oct 06, 2016 2:42 pm

Re: Error messages from programs with loops

Postby LindaR » Thu Oct 06, 2016 6:02 pm

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.
Attachments
log_anzsic tramoseats program_lr_short.txt
(2.12 KiB) Downloaded 247 times
anzsic tramoseats program_lr_short.prg
(2 KiB) Downloaded 264 times
Error_short.docx
(17.15 KiB) Downloaded 265 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Error messages from programs with loops

Postby EViews Gareth » Fri Oct 07, 2016 5:30 am

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.

LindaR
Posts: 10
Joined: Thu Oct 06, 2016 2:42 pm

Re: Error messages from programs with loops

Postby LindaR » Sun Oct 09, 2016 11:37 pm

Thanks Gareth, your suggestion worked - I now know which series are failing and why/how. All the best, Linda


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests