Help in finding the first date of each series with loop
Posted: 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
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