New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
JSL instruction to call script saved with data table?
May 30, 2014 12:00 PM(16680 views)
I'm trying to call a script saved with a data table from another JSL script. Is that possible? I've used Include() before to call a JSL file, but can't figure out how to call a script that is saved with a data table.
NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.JMP");
// Find out what scripts are stored
sl = dt << getTableScriptNames;
// Pick a script at random
s = sl[RandomInteger(1, NItems(sl))];
// Run it
s = dt << runScript(s);
// Get a reference to the analysis object
obj = Report(s) << getScriptableObject;
// Find out what messages this object understands
ShowProperties(obj);