overview
The following example shows how to select rows in a data table that contain values stored in a JSL list.
procedure
In a JMP session, click the File menu and select New > JSL Script. Copy the following script and paste it into the script window. To run the example script, click the Edit menu and select Run Script.
/* サンプルのデータテーブルを開きます。 */
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
/* 年齢のリストを作成します。 */
myList = {9, 12, 15, 17, 18};
/* リスト内の年齢を持つすべての行を選択します。 */
dt << Select Where( Contains( myList, :年齢 ) );
Wait( 2 ); // この行はデモンストレーション目的です。
dt << Clear Select; // この行はデモンストレーション目的です。
/* 学生の名前のリストを作成します。 */
myStudents = {"HENRY", "ROBERT", "BARBARA", "SALLY", "MARION"};
/* リスト内の名前を持つすべての行を選択します。 */
dt << Select Where( Contains( myStudents, :名前 ) );
Additional Documentation
For more information about the JMP scripting language, see the JMP Scripting Guide . Access the guide by clicking Help on the JMP menu and selecting JMP Online Help. Select Scripting Guide from the list of online help contents.
Note: This FAQ is based on the following JMP Note:
JMP Note 575348 - How to select rows that match any value in a list