Not found in the script index, please finish with JSL.Thank you very much!
You could use data table subscripting:
NamesDefaultToHere(1); dt = Open("$SAMPLE_DATA/Big Class.jmp"); Wait(3); maleRows = Loc(dt[0, "sex"], "M"); dt[maleRows, "sex"] = "boy";
I've tried to write JSL in a way that only works with perfectly matched substitutions, but if you don't want to replace only a few characters, how do you write JSL?Thank you!
This is one way to do it
dt = Current Data Table(); dt:class[dt << get rows where( dt:class == "A1" )] = "A9";
OK. So maybe take a look at regular expressions.
That is not all the ways it can be coded in JSL to accomplish what you want, but Ian's suggestion is what I would have also suggested as the solution.
If this is the new case, this JSL is not very efficient.Can the code be improved for the new instance?Thank you!