Page 1 of 1

Help in finding the first date of each series with loop

Posted: Tue Dec 12, 2017 1:36 pm
by sudesh
Hi,
I have several series which have different starting date.

I'm able to find the first date of one series by using :@otods(1) however since I have around 50 series, I'm using a loop.

However, it's not working.

Any help will be greatly appreciated.


string type = "tr sr"
string curlist = "CAD USD"
string certain = "CN BR CB CL ID MX MY PE RS SA CH HN IN PH PO RM TH TK AU NW EK JP SD SW UK IS CZ KO AU EK UK NZ VE AG HK SP tw"


for %j {type}
for %y {curlist}

for %i {certain}

string firstdate_{%y}_{%j}_{%i} = @otods(1)

next
next
next

Re: Help in finding the first date of each series with loop

Posted: Tue Dec 12, 2017 1:53 pm
by EViews Gareth
series.@first

Re: Help in finding the first date of each series with loop

Posted: Tue Dec 12, 2017 5:01 pm
by sudesh
Thanks, it's working