For the latest version of JMP Help, visit JMP.com/help.


Scripting Guide > Introduction > The Scripting Guide > Let JMP Teach You JSL
Publication date: 04/28/2021

Let JMP Teach You JSL

The best JSL writer is JMP. You can work in JMP interactively and then save the results as a script to reuse later. With simple modifications, your script can serve as a template for speeding up routine tasks.

Because JSL is a very flexible language, you can reach your goals in many different ways. Here is an example. Typically, the script that JMP saves for you specifies every detail of your analysis, even if most of the details happen automatically by default. Does that mean that the scripts that you write have to be just as complete and detailed? Not at all. You usually need to specify only those details that you would select in the graphical user interface (GUI). For example, if you open Big Class.jmp from the sample data folder and want to launch Distribution for height, weight, and sex, the following script is all that is necessary:

Distribution( Y( :height, :weight, :sex ) );

Suppose you run the Distribution platform in the GUI and then select Save Script > To Script Window from the red triangle menu for the report. The following script appears:

Distribution(
	Continuous Distribution( Column( :height ) ),
	Continuous Distribution( Column( :weight ) ),
	Nominal Distribution( Column( :sex ) ),
);

Both scripts give the same result.

Feel free to experiment with JSL. If you think something ought to be possible, it probably is. Give it a try, and see what happens.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).