Help in finding the first date of each series with loop

For questions regarding programming in the EViews programming language.

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

sudesh
Posts: 51
Joined: Fri Nov 03, 2017 7:30 pm

Help in finding the first date of each series with loop

Postby sudesh » Tue Dec 12, 2017 1:36 pm

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

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

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

Postby EViews Gareth » Tue Dec 12, 2017 1:53 pm

series.@first
Follow us on Twitter @IHSEViews

sudesh
Posts: 51
Joined: Fri Nov 03, 2017 7:30 pm

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

Postby sudesh » Tue Dec 12, 2017 5:01 pm

Thanks, it's working


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 27 guests