I have a problem using the function @first and @last.
Here is what I expected to get from these operators, it is an excerpt from the eviews guide:
Instead if I write for instanceSeries Data Members
String values
@first string containing the date or observation number of the first non-NA observation of the series. In a panel workfile, the first date at which any cross-section has a non-NA observation is returned.
@last string containing the date or observation number of the last non-NA observation of the series. In a panel workfile, the last date at which any cross-section has a non-NA observation is returned.
string gdpend=@last(gdpyoy)
I get a message error that the output of this operator is a SCALAR and NOT a STRING.
I hoped that it was the OBSERVATION NUMBER, I was wrong it simply showed the VALUE of (in this case) the last non-NA observation of the series.
I'm trying to build a program that set the workfile range equal to the time interval spanned by a specific serie (in the example above the gdpyoy).
Could some one help me?
thanks a lot
S.
