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


Publication date: 07/24/2024

Copy Data Tables

The most efficient way to copy a data table is with the Subset() function. The following example subsets all rows and columns into New Table.jmp.

sourceDT = Open( "$SAMPLE_DATA/Big Class.jmp" );
destDT = sourceDT << Subset( Columns(), Rows(), Output Table Name( "New Table.jmp" ) );

You can also use Copy File().

Copy File( "$SAMPLE_DATA/Big Class.jmp", "C:\MyData\New Table.jmp" );

Copy File() is equivalent to copying the file on your computer. However, you have to consider whether the destination data table with the specified name already exists. And the source file has to be saved. If the source file is not saved, or the destination file already exists, the copy fails. It’s safer to use the Subset() method shown above.

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