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


Scripting Guide > Data Tables > Advanced Data Table Scripting > Select Columns in a Data Table
Publication date: 04/30/2021

Select Columns in a Data Table

To select one or more columns, send the Select Columns message to the data table.

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
clist = {:Height, :Weight};
dt << Select Columns( clist );

To select all columns, send the Select Columns message with the All argument to the data table.

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Select Columns( all );
Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).