<?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 Re: Rename Data Table Script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Rename-Data-Table-Script/m-p/56504#M31746</link>
    <description>&lt;P&gt;Thanks for the quick response.&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6696"&gt;@uday_guntupalli&lt;/a&gt;&amp;nbsp;I realized I missed out on indexing. I want to rename the table scripts beginning the third script, taking the first column name i.e. a[3] = Name[1]. How can I do that?&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2018 13:42:10 GMT</pubDate>
    <dc:creator>Aam_jmp</dc:creator>
    <dc:date>2018-05-07T13:42:10Z</dc:date>
    <item>
      <title>Rename Data Table Script</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-Data-Table-Script/m-p/56501#M31743</link>
      <description>&lt;P&gt;I know I can rename a data data table script using&amp;nbsp;dt &amp;lt;&amp;lt; Rename Table Script("Old","New"); But I want to rename more than one scripts and I am trying to rename all the scripts starting from the third script in the data table with the column names I acquired from a different table. Can anyone point me out to my mistake since I am getting no error in my log. Thank you.&amp;nbsp;&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;a1 = dt &amp;lt;&amp;lt; getTableScriptNames;
show(a1);
names = dt1 &amp;lt;&amp;lt; get column names(String);
 
for( i=3, i &amp;lt;= N Items( a1 ), i++,
dt &amp;lt;&amp;lt; Rename Table Script(a1,Name);
show(a1);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 13:58:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-Data-Table-Script/m-p/56501#M31743</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-05-07T13:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Data Table Script</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-Data-Table-Script/m-p/56502#M31744</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11322"&gt;@Aam_jmp&lt;/a&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A couple of things, you will need to index into the list of names , not use the list as a whole.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for(i = 3, i &amp;lt;= N Items(a1), i++,
		dt &amp;lt;&amp;lt; Rename Table Script(a1[i],Names[i]); 
   );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Another thing, I would keep in mind is if you are starting from i = 3, Are you sure you want to be naming starting from the 3rd column of dt1 - if yes, the above should work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 13:34:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-Data-Table-Script/m-p/56502#M31744</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-05-07T13:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Data Table Script</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-Data-Table-Script/m-p/56504#M31746</link>
      <description>&lt;P&gt;Thanks for the quick response.&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6696"&gt;@uday_guntupalli&lt;/a&gt;&amp;nbsp;I realized I missed out on indexing. I want to rename the table scripts beginning the third script, taking the first column name i.e. a[3] = Name[1]. How can I do that?&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 13:42:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-Data-Table-Script/m-p/56504#M31746</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-05-07T13:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Data Table Script</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-Data-Table-Script/m-p/56505#M31747</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11322"&gt;@Aam_jmp&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Simplest way I can think of is:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for(i = 3, i &amp;lt;= N Items(a1), i++,
		dt &amp;lt;&amp;lt; Rename Table Script(a1[i],Names[i-2]); 
   );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;However, irrespective of the approach you will need to ensure that as there are sufficient items in Names for you to do this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 13:59:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-Data-Table-Script/m-p/56505#M31747</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-05-07T13:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Data Table Script</title>
      <link>https://community.jmp.com/t5/Discussions/Rename-Data-Table-Script/m-p/56506#M31748</link>
      <description>Thank you very much</description>
      <pubDate>Mon, 07 May 2018 14:11:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rename-Data-Table-Script/m-p/56506#M31748</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-05-07T14:11:12Z</dc:date>
    </item>
  </channel>
</rss>

