<?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 How to replace specific words in multiple column names? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-replace-specific-words-in-multiple-column-names/m-p/795456#M97196</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to replace the column names which contains a specific word? For example, my column names are Name, Age, New_Address, New_School, New_Number. And I need to replace the word &lt;EM&gt;New&lt;/EM&gt; with &lt;EM&gt;Current &lt;/EM&gt;or columns that &lt;STRONG&gt;may contain&amp;nbsp;&lt;/STRONG&gt;the word&amp;nbsp;&lt;EM&gt;New&lt;/EM&gt;&amp;nbsp;---- my new column names will become&amp;nbsp;Name, Age, Current_Address, Current_School, Current_Number. TIA&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2024 02:47:25 GMT</pubDate>
    <dc:creator>UserID16644</dc:creator>
    <dc:date>2024-09-05T02:47:25Z</dc:date>
    <item>
      <title>How to replace specific words in multiple column names?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-replace-specific-words-in-multiple-column-names/m-p/795456#M97196</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to replace the column names which contains a specific word? For example, my column names are Name, Age, New_Address, New_School, New_Number. And I need to replace the word &lt;EM&gt;New&lt;/EM&gt; with &lt;EM&gt;Current &lt;/EM&gt;or columns that &lt;STRONG&gt;may contain&amp;nbsp;&lt;/STRONG&gt;the word&amp;nbsp;&lt;EM&gt;New&lt;/EM&gt;&amp;nbsp;---- my new column names will become&amp;nbsp;Name, Age, Current_Address, Current_School, Current_Number. TIA&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 02:47:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-replace-specific-words-in-multiple-column-names/m-p/795456#M97196</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2024-09-05T02:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace specific words in multiple column names?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-replace-specific-words-in-multiple-column-names/m-p/795475#M97197</link>
      <description>&lt;P&gt;Here is one way to do it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
colNames = dt &amp;lt;&amp;lt; get column names( string );

For Each( {col}, colNames,
	If( Contains( col, "New" ),
		Column( dt, col ) &amp;lt;&amp;lt; set name( Substitute( col, "New", "Current" ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Sep 2024 03:17:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-replace-specific-words-in-multiple-column-names/m-p/795475#M97197</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-09-05T03:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace specific words in multiple column names?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-replace-specific-words-in-multiple-column-names/m-p/795480#M97198</link>
      <description>&lt;P&gt;You can also use Recode Column Names for this.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1725514259824.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67965iF289AC65DE62EEE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1725514259824.png" alt="jthi_0-1725514259824.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1725514271659.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67966i3C18B6253A7CBD67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1725514271659.png" alt="jthi_1-1725514271659.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1725514286248.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67967i789A642E09A14A6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1725514286248.png" alt="jthi_2-1725514286248.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1725514292965.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67968i85A46359B69C8DDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1725514292965.png" alt="jthi_3-1725514292965.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 05:32:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-replace-specific-words-in-multiple-column-names/m-p/795480#M97198</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-05T05:32:50Z</dc:date>
    </item>
  </channel>
</rss>

