<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Rename a column jsl script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/35721#M21080</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;Appologies this is probably obvious to most here&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2017 16:54:31 GMT</pubDate>
    <dc:creator>DKI</dc:creator>
    <dc:date>2017-02-13T16:54:31Z</dc:date>
    <item>
      <title>Rename a column jsl script</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/35721#M21080</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;Appologies this is probably obvious to most here&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 16:54:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/35721#M21080</guid>
      <dc:creator>DKI</dc:creator>
      <dc:date>2017-02-13T16:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a column jsl script</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/35722#M21081</link>
      <description>&lt;P&gt;Here is an example from&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;Data Table==&amp;gt;Column Scripting&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
:Age &amp;lt;&amp;lt; Set Name( "Time" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 17:09:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/35722#M21081</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-02-13T17:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a column jsl script</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/35723#M21082</link>
      <description>&lt;P&gt;Thanks alot Jim&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks also for showing where you found it.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 17:20:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/35723#M21082</guid>
      <dc:creator>DKI</dc:creator>
      <dc:date>2017-02-13T17:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a column jsl script</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/35724#M21083</link>
      <description>&lt;P&gt;In the future, you might find the on-line help useful. In this case:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Help&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Scripting Index&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Change the drop-down menu from initial &lt;STRONG&gt;All Categories&lt;/STRONG&gt; to &lt;STRONG&gt;Objects&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Column Scripting&lt;/STRONG&gt; under &lt;STRONG&gt;Data Table&lt;/STRONG&gt; in the first list.&lt;/LI&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Set Name&lt;/STRONG&gt; in the second list.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You will find the correct syntax with arguments and options. You can run an example and observe the result. You can click &lt;STRONG&gt;Topic Help&lt;/STRONG&gt; to go to the more complete coverage in the main help system.&lt;/P&gt;
&lt;P&gt;You can also search in Objects with &lt;EM&gt;column name&lt;/EM&gt;&amp;nbsp;for example to find all related functions or messages.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 17:51:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/35724#M21083</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-02-13T17:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a column jsl script</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/880433#M104415</link>
      <description>&lt;P&gt;The script you suggest works well when a user is working with only one table.&amp;nbsp; But I've been trying to change the name of a specific column within one of several tables open, and cannot find guidance within the Scripting Index.&amp;nbsp; What would the JSL syntax be for this scenario?&lt;BR /&gt;&lt;BR /&gt;Example&lt;/P&gt;
&lt;P&gt;I am working with two tables (Cdt1 and Cdt2) and Cdt1 has a column with name "value" that I want to change to "Fault code"&lt;/P&gt;
&lt;P&gt;I've tried to select the "value" column first before changing the name, but that didn't help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Cdt1 &amp;lt;&amp;lt; Select Columns("value");
Column("value") &amp;lt;&amp;lt; Set Name( "Fault code" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My other attempt was worse...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Cdt1 &amp;lt;&amp;lt; Columns("value") &amp;lt;&amp;lt; Set Name ("Fault code");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Either way, I haven't been successful after a while of trying and looking for guidance.&amp;nbsp; Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 19:54:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/880433#M104415</guid>
      <dc:creator>GreenisBTFL</dc:creator>
      <dc:date>2025-06-18T19:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a column jsl script</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/880437#M104416</link>
      <description>&lt;P&gt;From the scripting index:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmarchandFSLR_1-1750277617377.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77057i7011D960F076E9F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandFSLR_1-1750277617377.png" alt="mmarchandFSLR_1-1750277617377.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmarchandFSLR_0-1750277582774.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77056iE9B4F3B151376361/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandFSLR_0-1750277582774.png" alt="mmarchandFSLR_0-1750277582774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So your code should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Cdt1:value &amp;lt;&amp;lt; Set Name( "Fault code" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Column( Cdt1, "value" ) &amp;lt;&amp;lt; Set Name( "Fault code" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 20:16:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-a-column-jsl-script/m-p/880437#M104416</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2025-06-18T20:16:08Z</dc:date>
    </item>
  </channel>
</rss>

