Illegal or reserved name

For questions regarding programming in the EViews programming language.

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

weu39843
Posts: 10
Joined: Fri Oct 21, 2016 1:05 am

Illegal or reserved name

Postby weu39843 » Sat Jan 28, 2017 12:27 pm

Hey guys,

I get this error message for the red codelines below:

SER_VW_R1991M10_S1BM1HML1 is an illegal or reserved
name in "SERIES SER_VW_R{!A}M10_S{!S}BM{!P}{%V}{!H} =
(SER_R1991M10_S1BM1HML1 * S1991M9) /
SCA_S1BM1HML1_1991_9".

Code: Select all

for %v hml smb bet
for !a = 1991 to 2015
!b = !a + 1
for !s = 1 to 3
for !p = 1 to 3
for !h = 1 to 3
   series ser_vw_r{!a}M7_s{!s}bm{!p}{%v}{!h} = (ser_r{!a}M7_s{!s}bm{!p}{%v}{!h} * s{!a}m6) / sca_s{!s}bm{!p}{%v}{!h}_{!a}_6
   series ser_vw_r{!a}M8_s{!s}bm{!p}{%v}{!h} = (ser_r{!a}M8_s{!s}bm{!p}{%v}{!h} * s{!a}m7) / sca_s{!s}bm{!p}{%v}{!h}_{!a}_7
   series ser_vw_r{!a}M9_s{!s}bm{!p}{%v}{!h} = (ser_r{!a}M9_s{!s}bm{!p}{%v}{!h} * s{!a}m8) / sca_s{!s}bm{!p}{%v}{!h}_{!a}_8
   [color=#FF0000]series ser_vw_r{!a}M10_s{!s}bm{!p}{%v}{!h} = (ser_r{!a}M10_s{!s}bm{!p}{%v}{!h} * s{!a}m9) / sca_s{!s}bm{!p}{%v}{!h}_{!a}_9
   series ser_vw_r{!a}M11_s{!s}bm{!p}{%v}{!h} = (ser_r{!a}M11_s{!s}bm{!p}{%v}{!h} * s{!a}m10) / sca_s{!s}bm{!p}{%v}{!h}_{!a}_10
   series ser_vw_r{!a}M12_s{!s}bm{!p}{%v}{!h} = (ser_r{!a}M12_s{!s}bm{!p}{%v}{!h} * s{!a}m11) / sca_s{!s}bm{!p}{%v}{!h}_{!a}_11[/color]
   series ser_vw_r{!b}M1_s{!s}bm{!p}{%v}{!h} = (ser_r{!b}M1_s{!s}bm{!p}{%v}{!h} * s{!a}m12) / sca_s{!s}bm{!p}{%v}{!h}_{!a}_12
   series ser_vw_r{!b}M2_s{!s}bm{!p}{%v}{!h} = (ser_r{!b}M2_s{!s}bm{!p}{%v}{!h} * s{!b}m1) / sca_s{!s}bm{!p}{%v}{!h}_{!b}_1
   series ser_vw_r{!b}M3_s{!s}bm{!p}{%v}{!h} = (ser_r{!b}M3_s{!s}bm{!p}{%v}{!h} * s{!b}m2) / sca_s{!s}bm{!p}{%v}{!h}_{!b}_2
   series ser_vw_r{!b}M4_s{!s}bm{!p}{%v}{!h} = (ser_r{!b}M4_s{!s}bm{!p}{%v}{!h} * s{!b}m3) / sca_s{!s}bm{!p}{%v}{!h}_{!b}_3
   series ser_vw_r{!b}M5_s{!s}bm{!p}{%v}{!h} = (ser_r{!b}M5_s{!s}bm{!p}{%v}{!h} * s{!b}m4) / sca_s{!s}bm{!p}{%v}{!h}_{!b}_4
   series ser_vw_r{!b}M6_s{!s}bm{!p}{%v}{!h} = (ser_r{!b}M6_s{!s}bm{!p}{%v}{!h} * s{!b}m5) / sca_s{!s}bm{!p}{%v}{!h}_{!b}_5
next
next
next
next
next



As you can see, the code lines are all pretty similar despite the varying year and month. Only the three highlighted codelines are not working.


Kind regards

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Illegal or reserved name

Postby startz » Sat Jan 28, 2017 12:47 pm

EViews object names are limited to 24 characters.

weu39843
Posts: 10
Joined: Fri Oct 21, 2016 1:05 am

Re: Illegal or reserved name

Postby weu39843 » Sun Jan 29, 2017 7:18 am

Thank you startz :)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 16 guests