Page 1 of 1

Error of illegal date in scalar assignment using @elem()

Posted: Fri Apr 10, 2020 1:30 pm
by mtrebing
I am getting the following error in the EViews 11 Enterprise Version, March 30 Build, but it still works on build Feb 6 on a different machine.
"Illegal date {%L} in "SCALAR {%Y}{%B}WEEKINITIALCLAIMSSHARET=@ELEM(NJINITALCLAIMSSHARE,"{%L}")" on line 32.

Code: Select all

From the following loop: %b = "3" %l= "4/08/2020" %n= "4/01/2020" %o= "3/18/2020" for %y NJ PA DE US scalar {%y}{%b}weekinitialclaimsshareT=@elem({%y}initalclaimsshare,"{%l}") scalar {%y}initalclaims{%b}WshareT=@elem({%y}initalclaims3wshare,"{%l}") scalar {%y}{%b}weekinitiallaimssumT=@elem({%y}{%b}weeksum,"{%l}") scalar {%y}{%b}continuingclaimsLFshareT=@elem({%y}continuingclaimsLFshare,"{%n}") scalar {%y}{%b}continuingclaimsLFsharePRET=@elem({%y}continuingclaimsLFshare,"{%o}") scalar {%y}totalcontinuingclaims=@elem({%y}liu,"{%n}") next
It is weekly data so am suspicious it has something to do with that. But it works fine on a different machine.
Any suggestions

Re: Error of illegal date in scalar assignment using @elem()

Posted: Fri Apr 10, 2020 7:34 pm
by EViews Gareth
Check Options->Global Options->Date representation to make sure you have the date format matching.