cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
DKI
DKI
Level II

Rename a column jsl script

Hi 

 

I am pretty new to JSL scripting. I cant seem to find a script to rename of a column header from one name to another

Appologies this is probably obvious to most here

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Rename a column jsl script

Here is an example from

     Help==>Scripting Index==>Data Table==>Column Scripting

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
:Age << Set Name( "Time" );

 

Jim

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: Rename a column jsl script

Here is an example from

     Help==>Scripting Index==>Data Table==>Column Scripting

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
:Age << Set Name( "Time" );

 

Jim
DKI
DKI
Level II

Re: Rename a column jsl script

Thanks alot Jim

Thats exactly what I needed. I was using a variation on that script that I had been messing around with for ages and could not make it work. 

Thanks also for showing where you found it.

Re: Rename a column jsl script

In the future, you might find the on-line help useful. In this case:

  1. Select Help > Scripting Index.
  2. Change the drop-down menu from initial All Categories to Objects.
  3. Select Column Scripting under Data Table in the first list.
  4. Select Set Name in the second list.

You will find the correct syntax with arguments and options. You can run an example and observe the result. You can click Topic Help to go to the more complete coverage in the main help system.

You can also search in Objects with column name for example to find all related functions or messages.