fill assignment

For questions regarding programming in the EViews programming language.

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

mvv_eviews
Posts: 3
Joined: Wed Jan 14, 2009 8:44 am

fill assignment

Postby mvv_eviews » Fri Jan 30, 2009 5:22 am

Hi,

I have a problem with the fill assignment. I would like to fill the variable "temp" with the value of the variable "brent" or the value of a scalar m. Neither of these variants of the code works:

Variant 1:

for !i = 2 to 10
scalar n=!i
temp.fill(o=n,l) @elem(brent,@otod(n)) ' with or without l
next


Variant 2:

for !i = 2 to 10
temp.fill(o=!i) @elem(brent,@otod(!i))

for !l = 1 to k
temp.fill(o= {!i}-1+{!l}) m ' where m is a scalar, same error message with or without { }
next

next

The error message always says "illegal date"

Can anybody help me?

Thanks a lot, Martina

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

Re: fill assignment

Postby EViews Gareth » Fri Jan 30, 2009 9:12 am

You probably want to try something like:

%date = @otod(!i)
temp.fill(o=%date,l) @elem(brent,%date)
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 34 guests