Hi all,
I am struggling with the async parts of JMP/JSL. Now I understand you can use "Run Formulas()" to force evaluation of a formula before using it, but I have similar issues with other functions:
When the value is used, it may be incorrect. This is very dangerous!
Is there a "force sync mode" in which JSL goes instruction by instruction and systematically wait for one to be completed before moving to the next?
Example of my current issues, I extract values from a selection of rows (selRows) from one table (dt) to fill a row in another table (sumdt):
thisCol = Column(sumdt, thisName||"_Q10");
valueSet = Column(dt, colList[i])[selRows];
thisValue = Quantile(0.10, valueSet);
thisCol[] = thisValue;
thisCol = Column(sumdt, thisName||"_Q25");
thisValue = Quantile (0.25, valueSet);
thisCol[] = thisValue;
thisCol = Column(sumdt, thisName||"_Q50");
thisValue = Quantile (0.50, valueSet);
thisCol[] = thisValue;
thisCol = Column(sumdt, thisName||"_Q75");
thisValue = Quantile (0.75, valueSet);
thisCol[] = thisValue;
thisCol = Column(sumdt, thisName||"_Q90");
thisValue = Quantile (0.90, valueSet);
thisCol[] = thisValue;This works SOMETIMES! But sometimes, all data in the sumdt column are just the same value, and sometimes, nothing comes out at all.
I know some recommand the wait(0) command, but I read someone saying it is not a guarantee either.
So how do I make sure the calcuations get completed??
Thanks!