cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
bioptical
Level I

Renaming Data Table using a previous table name

I know I can rename a table using 

dt << SetName("FirstTablename");

 

But say I'd like to rename a 2nd data table that concatenates the name of the 1st data table so that it is something like

dt2 << SetName( Nameof1stTable || " 2");

 

Does anyone know how I could just name a 2nd table with an appended character? The reason I want to do this is that usually I modify multiple tables in JSL with splits and joins and end up with a large number of untitled tables which I find hard to keep track of which "parent" table it was derived from.

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Renaming Data Table using a previous table name

dt2 << set name( dt << get name || " 2" );

In actuality, you do not have to do the concatenation because JMP will see that the name you set is the same as another table, and will automatically add the "2";

dt2 << set name( dt << get name );

 

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Renaming Data Table using a previous table name

dt2 << set name( dt << get name || " 2" );

In actuality, you do not have to do the concatenation because JMP will see that the name you set is the same as another table, and will automatically add the "2";

dt2 << set name( dt << get name );

 

Jim

Recommended Articles