<?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 Edit a character variable and replace parts with blanks or nulls in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Edit-a-character-variable-and-replace-parts-with-blanks-or-nulls/m-p/161966#M263385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to do a find and replace in a character variable.&amp;nbsp; See sample below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original character variable---&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;test.test1.test2.test3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Want to edit replace everything starting with the 1st"." and replace with spaces or nulls, so the final variable contains:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; test&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;Jim Glover&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 14:12:25 GMT</pubDate>
    <dc:creator>Gloveman71</dc:creator>
    <dc:date>2014-07-01T14:12:25Z</dc:date>
    <item>
      <title>Edit a character variable and replace parts with blanks or nulls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Edit-a-character-variable-and-replace-parts-with-blanks-or-nulls/m-p/161966#M263385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to do a find and replace in a character variable.&amp;nbsp; See sample below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original character variable---&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;test.test1.test2.test3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Want to edit replace everything starting with the 1st"." and replace with spaces or nulls, so the final variable contains:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; test&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;Jim Glover&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 14:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Edit-a-character-variable-and-replace-parts-with-blanks-or-nulls/m-p/161966#M263385</guid>
      <dc:creator>Gloveman71</dc:creator>
      <dc:date>2014-07-01T14:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a character variable and replace parts with blanks or nulls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Edit-a-character-variable-and-replace-parts-with-blanks-or-nulls/m-p/161967#M263386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;string = scan(string,1,'.');&lt;/P&gt;&lt;P&gt;you don't mention a variable name so i use string as a generic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 14:14:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Edit-a-character-variable-and-replace-parts-with-blanks-or-nulls/m-p/161967#M263386</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-07-01T14:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a character variable and replace parts with blanks or nulls</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Edit-a-character-variable-and-replace-parts-with-blanks-or-nulls/m-p/161968#M263387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case if you want to replace all the dots(.) then use this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;name_all=tranwrd(name,&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'.'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;Hope this helps !!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 14:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Edit-a-character-variable-and-replace-parts-with-blanks-or-nulls/m-p/161968#M263387</guid>
      <dc:creator>yeshwanth</dc:creator>
      <dc:date>2014-07-01T14:33:59Z</dc:date>
    </item>
  </channel>
</rss>

