Loops
Problem
You need to execute some JSL more than once.
Solution
Use a for(...) or while(...) or one of the more exotic variations.
The for loop is th...
Problem
You need to execute some JSL more than once.
Solution
Use a for(...) or while(...) or one of the more exotic variations.
The for loop is th...
Problem Suppose you prompt a user to make a selection. When you retrieve the values from the user, typically they are stored in a list. Now you need...
Access usernames and passwords without saving them in your script or code.
Problem You want to use a Slider Box to set a continuous value, and you want to see the current value as you move the slider. Solution Make a Slide...
Problem You need to build a custom calculator that displays a table of numbers based on several input values. Solution Use Number Edit Boxes to get...
We are in the process of revamping the JSL Cookbook to give it broader appeal, make it better organized, and easier to use. The focus will be on shor...
Insert variables or expressions into other expressions. This is a brief introduction to Eval(), Eval Expr(), Substitute(), Parse(), and Eval Insert()...
ProblemYou need to look at every element in an Associative ArraySolutionuse the <<First and <<Next messages// load a table of elements
dt = Open( "htt
...
Problem Suppose your data table has a set of rows selected. Now, you want to select rows from that selection that meet an additional condition. So...
Problem You have some code that you want to call from more than one place, maybe with different arguments. Solution Use a user written function, wi...
Problem You have data in a Matrix and need a Data Table, or the other way 'round Data table or matrix? Solution There is a function, AsTable(), that...
Problem Concatenate data tables using Files in Directory, without using Multiple File Import Solution Use Files in Directory to make a list and C...
Problem APIs and other machine generated code often delivers very complicated data structures. I found it helpful to have a tool that analyzes these ...
Get the code to submit a call to MapQuest REST APIs
Get geo-codes from MapQuest without the need to care about details of the interface.
Get routing information from MapQuest without the need to care about details of the interface.
Problem You have a 2D matrix. You used the Loc function to locate interesting elements, but Loc returned indexes for a 1D matrix. How can you convert...
ProblemI wanted to create this figure for a publication SolutionTo create the vertically oriented shaded/filled and truncated normal curves, I utilize...
Problem You know some C++ and have some idea what a C++ object is and need the 20 minute intro to JMP's scripting language. Solution There is a JM...
Problem If you need to open a file in an external program, typically the JSL Open() function will work for you. However, if you want to open a file t...
Problem When creating user interfaces in JMP, you may want to add some background or foreground colors to your displays. However, with JMP 15's new s...
ProblemYou have data in one or more lists or matrix vectors that you need to sort.SolutionUse Sort List() or Sort List Into(), Rank(), or put the list...
Problem Suppose you wish to select rows in a data table that meet more than one condition. Or, maybe you want to select the rows that meet one of a f...
ProblemProblem 1: I need to get a list of the unique values in a data table column.Problem 2: I need to get a list of the unique values in a JSL dat...
reference lines automatically added using JSL