Is there a way to script a nested loop statement using JSL? I'm running into errors when I try. I am writing a script that transforms a dataset using indirect lognormal correction for change of support and I think I need a nested WHILE statement to make it work.
Although I realize the syntax is not entirely correct, the following illustration conveys what I am trying to do:
i=1;
j=1;
n=NRow() // with more than 209,000 rows
While( i < n-1,
While( j < n,
s = s + ( data(i) * data(j),
j = j++),
i = i++);
There is always more than one way to accomplish things, so if JSL does not support nested loops does anyone have any suggestions?