error when seasonally adjusting multiple series

For questions regarding programming in the EViews programming language.

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

pcruzd
Posts: 14
Joined: Thu Dec 14, 2017 11:53 am

error when seasonally adjusting multiple series

Postby pcruzd » Fri Mar 08, 2019 8:47 am

Hello,
I am having trouble when seasonally adjusting (x13) multiple series. I am getting an error that appear only certain times and I have to run the exactly same code 5 to 6 times until the error magically doesn't appear. The error that I am getting is: 'Unable to open file c:\users\username\appdata\ev_temp\evx13tmp.spc in "SER{!X}.X13("SAVE="D11 D10")". Please help

PS. I'm using Eviews 9.5

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

Re: error when seasonally adjusting multiple series

Postby EViews Gareth » Fri Mar 08, 2019 9:02 am

That error indicates that something went wrong inside the X-13 executable. Unfortunately we don't have any control over what goes on inside it, so there isn't much we can say.
Follow us on Twitter @IHSEViews

pcruzd
Posts: 14
Joined: Thu Dec 14, 2017 11:53 am

Re: error when seasonally adjusting multiple series

Postby pcruzd » Thu Mar 21, 2019 7:03 am

Thanks Gareth,
So far I've been able to manage it using setmaxerror and @errorcount, but Im having a problem when additional errors appear (like no seasonallity in the series). So I would like to know if there's any way to know what type of error im getting while running the program. For instance, to generate a lable with the text that appears in the log file when an error occurs.

Actually, my code is

Code: Select all

!err = 0
for !x = 1 to 50
   SER{!X}.X13("SAVE="D11 D10")
   !newerr = !err + @errorcount
   if !newerr>!err then
      !err = !newerr
      !count = 0
      !maxcount = 20
      while !count <= !maxcount
         SER{!X}.X13("SAVE="D11 D10")
         !newerr = !err + @errorcount
         if !newerr=!err then
            exitloop
         endif
         !count = !count+1
      wend
   endif
next

pcruzd
Posts: 14
Joined: Thu Dec 14, 2017 11:53 am

Re: error when seasonally adjusting multiple series

Postby pcruzd » Thu Mar 21, 2019 7:29 am

I just realized I posted an old code with errors, here is the actual one:

Code: Select all

for !x = 1 to 50
   !err = @errorcount
      SER{!X}.X13("SAVE="D11 D10")
     !check= @errorcount-!err
      if !check>0 then
         !count = 0
      !maxcount = 20
         while !count <= !maxcount
            !err = @errorcount
               SER{!X}.X13("SAVE="D11 D10")
              !check= @errorcount-!err
            if !check=0 then
               exitloop
            endif
            !count = !count+1
         wend
      endif
next


Return to “Programming”

Who is online

Users browsing this forum: Google [Bot] and 30 guests