Page 1 of 1

fill assignment

Posted: Fri Jan 30, 2009 5:22 am
by mvv_eviews
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

Re: fill assignment

Posted: Fri Jan 30, 2009 9:12 am
by EViews Gareth
You probably want to try something like:

%date = @otod(!i)
temp.fill(o=%date,l) @elem(brent,%date)