<?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 column name change JSL script no longer works in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/column-name-change-JSL-script-no-longer-works/m-p/418818#M66789</link>
    <description>&lt;P&gt;Hello JMP community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After downloading fine scale weather data, I have a script to summarize the data which includes changing the column names in the new table. However, it seems the following script no longer works in the latest version of JMP. Can anyone tell me how to fix this? I've attached the full script for context, but the following is what no longer works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = daily mean:Name( "Mean(Temp (F))" ) &amp;lt;&amp;lt; Set Name( "Mean temp °F" );
dt = daily mean:Name( "Std Dev(Temp (F))" ) &amp;lt;&amp;lt; Set Name( "Std Dev temp °F" );
dt = daily mean:Name( "Min(Temp (F))" ) &amp;lt;&amp;lt; Set Name( "Min temp °F" );
dt = daily mean:Name( "Max(Temp (F))" ) &amp;lt;&amp;lt; Set Name( "Max temp °F" );
dt = daily mean:Name( "Range(Temp (F))" ) &amp;lt;&amp;lt; Set Name( "Range temp °F" );
dt = daily mean:Name( "Mean(Temp (C))" ) &amp;lt;&amp;lt; Set Name( "Mean temp °C" );
dt = daily mean:Name( "Std Dev(Temp (C))" ) &amp;lt;&amp;lt; Set Name( "Std Dev temp °C" );
dt = daily mean:Name( "Min(Temp (C))" ) &amp;lt;&amp;lt; Set Name( "Min temp °C" );
dt = daily mean:Name( "Max(Temp (C))" ) &amp;lt;&amp;lt; Set Name( "Max temp °C" );
dt = daily mean:Name( "Range(Temp (C))" ) &amp;lt;&amp;lt; Set Name( "Range temp °C" );
dt = daily mean:Name( "Max(Precip Since Mid. (inches))" ) &amp;lt;&amp;lt; Set Name( "Max Precip in" );
dt = daily mean:Name( "Max(Precip Since Mid. (mm))" ) &amp;lt;&amp;lt; Set Name( "Max Precip mm" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 19:56:56 GMT</pubDate>
    <dc:creator>jpmontagne</dc:creator>
    <dc:date>2023-06-09T19:56:56Z</dc:date>
    <item>
      <title>column name change JSL script no longer works</title>
      <link>https://community.jmp.com/t5/Discussions/column-name-change-JSL-script-no-longer-works/m-p/418818#M66789</link>
      <description>&lt;P&gt;Hello JMP community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After downloading fine scale weather data, I have a script to summarize the data which includes changing the column names in the new table. However, it seems the following script no longer works in the latest version of JMP. Can anyone tell me how to fix this? I've attached the full script for context, but the following is what no longer works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = daily mean:Name( "Mean(Temp (F))" ) &amp;lt;&amp;lt; Set Name( "Mean temp °F" );
dt = daily mean:Name( "Std Dev(Temp (F))" ) &amp;lt;&amp;lt; Set Name( "Std Dev temp °F" );
dt = daily mean:Name( "Min(Temp (F))" ) &amp;lt;&amp;lt; Set Name( "Min temp °F" );
dt = daily mean:Name( "Max(Temp (F))" ) &amp;lt;&amp;lt; Set Name( "Max temp °F" );
dt = daily mean:Name( "Range(Temp (F))" ) &amp;lt;&amp;lt; Set Name( "Range temp °F" );
dt = daily mean:Name( "Mean(Temp (C))" ) &amp;lt;&amp;lt; Set Name( "Mean temp °C" );
dt = daily mean:Name( "Std Dev(Temp (C))" ) &amp;lt;&amp;lt; Set Name( "Std Dev temp °C" );
dt = daily mean:Name( "Min(Temp (C))" ) &amp;lt;&amp;lt; Set Name( "Min temp °C" );
dt = daily mean:Name( "Max(Temp (C))" ) &amp;lt;&amp;lt; Set Name( "Max temp °C" );
dt = daily mean:Name( "Range(Temp (C))" ) &amp;lt;&amp;lt; Set Name( "Range temp °C" );
dt = daily mean:Name( "Max(Precip Since Mid. (inches))" ) &amp;lt;&amp;lt; Set Name( "Max Precip in" );
dt = daily mean:Name( "Max(Precip Since Mid. (mm))" ) &amp;lt;&amp;lt; Set Name( "Max Precip mm" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:56:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/column-name-change-JSL-script-no-longer-works/m-p/418818#M66789</guid>
      <dc:creator>jpmontagne</dc:creator>
      <dc:date>2023-06-09T19:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: column name change JSL script no longer works</title>
      <link>https://community.jmp.com/t5/Discussions/column-name-change-JSL-script-no-longer-works/m-p/418835#M66790</link>
      <description>&lt;P&gt;Fascinating. I did not know that ever worked. It appears not to work in JMP 16.&amp;nbsp;( &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/494"&gt;@XanGregg&lt;/a&gt;&amp;nbsp; try &lt;EM&gt;big class:name&amp;lt;&amp;lt;setname("yyy")&lt;/EM&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change all "&lt;STRONG&gt;dt = daily mean&lt;/STRONG&gt;" to "&lt;STRONG&gt;dt_tab&lt;/STRONG&gt;" and I think you'll be back in business.&lt;/P&gt;&lt;P&gt;something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_tab:Name( "Mean(Temp (F))" ) &amp;lt;&amp;lt; Set Name( "Mean temp °F" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;"&lt;EM&gt;daily mean&lt;/EM&gt;" is the name of the data table. Apparently, before JMP 16, that made a name space. You have a variable in the JSL, &lt;STRONG&gt;dt_tab&lt;/STRONG&gt;, that holds a handle to the data table which is what is usually used.&lt;/P&gt;&lt;P&gt;In your original JSL, you are not actually using the assignment to &lt;STRONG&gt;dt&lt;/STRONG&gt; (other than at the beginning for the current data table) and it was not doing anything useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 23:16:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/column-name-change-JSL-script-no-longer-works/m-p/418835#M66790</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-09-16T23:16:09Z</dc:date>
    </item>
  </channel>
</rss>

