<?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: JSL Column Name Search and Replace in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Column-Name-Search-and-Replace/m-p/49911#M28384</link>
    <description>&lt;P&gt;I think this should work, or at least it is close to it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

colList = dt &amp;lt;&amp;lt; get column names( string );

For( i = 1, i &amp;lt;= N Items( colList ), i++,
	If( Left( colList[i], 14 ) == "NAME [US] 1999",
		Column( dt, colList[i] ) &amp;lt;&amp;lt; set name( "AMERICA " || 
			Word( -1, colList[i], " " ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 22 Jan 2018 00:26:01 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-01-22T00:26:01Z</dc:date>
    <item>
      <title>JSL Column Name Search and Replace</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Column-Name-Search-and-Replace/m-p/49910#M28383</link>
      <description>&lt;P&gt;I have lot of column name and I want to rename my column name as below.&amp;nbsp;How can I use Set name to replace all my columns in the table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NAME [US] 1999 AMERICA POP US123 -&amp;gt;&amp;nbsp;&lt;SPAN&gt;AMERICA&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;US123&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;NAME [US] 1999 AMERICA POP US456&amp;nbsp;&lt;SPAN&gt;-&amp;gt;&amp;nbsp;AMERICA&amp;nbsp;US456&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;NAME [US] 1999 AMERICA POP US145&amp;nbsp;&lt;SPAN&gt;-&amp;gt;&amp;nbsp;AMERICA&amp;nbsp;US145&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
:Age &amp;lt;&amp;lt; Set Name( "Time" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 23:39:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Column-Name-Search-and-Replace/m-p/49910#M28383</guid>
      <dc:creator>sam_t</dc:creator>
      <dc:date>2018-01-21T23:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Column Name Search and Replace</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Column-Name-Search-and-Replace/m-p/49911#M28384</link>
      <description>&lt;P&gt;I think this should work, or at least it is close to it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

colList = dt &amp;lt;&amp;lt; get column names( string );

For( i = 1, i &amp;lt;= N Items( colList ), i++,
	If( Left( colList[i], 14 ) == "NAME [US] 1999",
		Column( dt, colList[i] ) &amp;lt;&amp;lt; set name( "AMERICA " || 
			Word( -1, colList[i], " " ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Jan 2018 00:26:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Column-Name-Search-and-Replace/m-p/49911#M28384</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-01-22T00:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Column Name Search and Replace</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Column-Name-Search-and-Replace/m-p/49913#M28386</link>
      <description>&lt;P&gt;Works like a charm. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 00:50:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Column-Name-Search-and-Replace/m-p/49913#M28386</guid>
      <dc:creator>sam_t</dc:creator>
      <dc:date>2018-01-22T00:50:14Z</dc:date>
    </item>
  </channel>
</rss>

