dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
Set Formula(If(Row() == 1, :Height, Lag(:Sum,1) + :Height))
The code above creates Sum column with calculated the accumulative sum. I am new to JSL so could someone explain me how the Formula command works. Is it scan one by one row in the column so that we can write :Height instead of constructing a For-loop with [i] which indicates the position of the current rows.