I would be grateful for helping with this. The program is supposed to execute the same set of commands in 10 workfiles (each workfile represents one country).
I got stuck at line 3, where I try to automatize the import of data. The three series are arranged in an Excel file, on the same sheet, and follow after each other: for the first workfile (country) I need rows 2:40, for the second 41:79, etc. (every time 39 rows).
I tried to check out the help file and also the programming examples at this forum, but somehow I still have no idea how to indicate the data cell, so that the for loop can run over it.
Code: Select all
for !j = 1 to 10
wfcreate(wf=country{!j} ) q 2000q1 2009q3
read(c{2+(!j-1)*39}, s=data) file.xls series1 series2 series3
next 