Scripting Guide > Data Tables > Accessing Data Values
Publication date: 08/13/2020

Accessing Data Values

The typical way to work with values in a data table is to follow these steps:

1. Set up the data table whose values you want to access as the current data table. Or, if you already have a data table reference, you can simply use that reference. See Set the Current Data Table.

2. Specify the row or rows whose values you want to access and specify the column name that contains the values that you want to access. See Set or Get Values by Column Name.

The following example opens the Big Class.jmp sample data table (making it the current data table), and then specifies row 2 in the weight column. A value of 123 is returned in the log, which is the weight for Louise in row 2.

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt:weight[2];

123

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