<?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: How do I change all occurrences of xyz:# to xyz in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-change-all-occurrences-of-xyz-to-xyz/m-p/399958#M65103</link>
    <description>When you state xyz:# is that literally the value or are you referring to xyz as being a character place holder like&lt;BR /&gt;     abcd:# &lt;BR /&gt;     zzqr:#&lt;BR /&gt;or are you referring to # as being a numeric place holder like&lt;BR /&gt;    abcd:123&lt;BR /&gt;    zzqr:874</description>
    <pubDate>Fri, 09 Jul 2021 20:49:25 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-07-09T20:49:25Z</dc:date>
    <item>
      <title>How do I change all occurrences of xyz:# to xyz</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-change-all-occurrences-of-xyz-to-xyz/m-p/399954#M65102</link>
      <description>&lt;P&gt;I need a script to loop across all character columns and find those who have the pattern xyz:#, and convert to xyz.&amp;nbsp; I have a program that adds a numerical value to each duplicate sample I analyze, however, I recode each duplicate sample name to remove the assigned number as part of my data clean-up.&amp;nbsp; Can this process be scripted?&amp;nbsp; Thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:52:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-change-all-occurrences-of-xyz-to-xyz/m-p/399954#M65102</guid>
      <dc:creator>KRT</dc:creator>
      <dc:date>2023-06-09T19:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change all occurrences of xyz:# to xyz</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-change-all-occurrences-of-xyz-to-xyz/m-p/399958#M65103</link>
      <description>When you state xyz:# is that literally the value or are you referring to xyz as being a character place holder like&lt;BR /&gt;     abcd:# &lt;BR /&gt;     zzqr:#&lt;BR /&gt;or are you referring to # as being a numeric place holder like&lt;BR /&gt;    abcd:123&lt;BR /&gt;    zzqr:874</description>
      <pubDate>Fri, 09 Jul 2021 20:49:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-change-all-occurrences-of-xyz-to-xyz/m-p/399958#M65103</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-09T20:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change all occurrences of xyz:# to xyz</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-change-all-occurrences-of-xyz-to-xyz/m-p/399975#M65108</link>
      <description>&lt;P&gt;XYZ is a placeholder that is referring to what I named the sample.&amp;nbsp; So for example, I analyze a sample that I name "Texas Tea" in triplicate, the program will return the data with the names, "Texas Tea:1, Texas Tea:2, and Texas Tea:3".&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 20:59:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-change-all-occurrences-of-xyz-to-xyz/m-p/399975#M65108</guid>
      <dc:creator>KRT</dc:creator>
      <dc:date>2021-07-09T20:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change all occurrences of xyz:# to xyz</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-change-all-occurrences-of-xyz-to-xyz/m-p/399990#M65109</link>
      <description>&lt;P&gt;I think this will do what you want&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( character, string );
For( i = 1, i &amp;lt;= N Items( colList ), i++,
	For Each Row(
		as Column( dt, colList[i] ) = Try(
			Word( 1, As Column( dt, colList[i] ), ":" )
		,
			As Column( dt, colList[i] )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you are going to be continuing with scripting, you need to take the time to read the Scripting Guide in the JMP Documentation Library, available under the Help pull down menu.&lt;/P&gt;
&lt;P&gt;The Discussion Group is not here to write code for the users, it is here to help users with issue they are finding when using JMP or in writing scripts.&amp;nbsp; The community will always be here to assist JMP users with getting through the problems they run into.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 21:30:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-change-all-occurrences-of-xyz-to-xyz/m-p/399990#M65109</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-09T21:30:23Z</dc:date>
    </item>
  </channel>
</rss>

