Eviews Pogram

For questions regarding programming in the EViews programming language.

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

Muhammad Javid
Posts: 3
Joined: Sat Feb 27, 2021 9:16 am

Eviews Pogram

Postby Muhammad Javid » Fri Dec 10, 2021 12:19 pm

What is mistake in following program code
for !i=1 to g_f.@count
%1=g_f.@seriesname(!i)
%2=@mid(%1,3)
link {%2}
{%2}.linkto data\f_{%2}
g_mod.add {%2}
next

Muhammad Javid
Posts: 3
Joined: Sat Feb 27, 2021 9:16 am

Re: Eviews Pogram

Postby Muhammad Javid » Fri Dec 10, 2021 12:22 pm

Wen I run the following code
for !i=1 to g_f.@count
%1=g_f.@seriesname(!i)
%2=@mid(%1,3)
link {%2}
{%2}.linkto data\f_{%2}
g_mod.add {%2}
next
I receive the following response

Syntax error in control statement in "FOR !I=1 TO G_F@COUNT" on
line 20.

What is issue here and How I can solve

EViews Matt
EViews Developer
Posts: 557
Joined: Thu Apr 25, 2013 7:48 pm

Re: Eviews Pogram

Postby EViews Matt » Fri Dec 10, 2021 1:15 pm

Hello,

I notice that the error message "FOR !I=1 TO G_F@COUNT" is missing the period in "g_f.@count". Are you sure that the program you're running includes that period like the samples you've shown us?


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 18 guests