- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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" );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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" );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Rename a column jsl script
In the future, you might find the on-line help useful. In this case:
- Select Help > Scripting Index.
- Change the drop-down menu from initial All Categories to Objects.
- Select Column Scripting under Data Table in the first list.
- 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.