<?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 Replacing a character with a blank in a string in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537852#M33116</link>
    <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a novice programmer and facing a new programming challenge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with enterprise guide to create a data set to be exported ultimately..&amp;nbsp; (I estimate about 1.7 million records..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A character column within it contains periods (.) in some of the rows. (the value is not always found, or in the same position within the string) I'd like to scan the column and replace them if possible with a blank. I am not sure if the is a function that I can use with creating a calculated column OR, how I can create a data set, then run a proc statement against it to read the rows, scan/replace if found the value and update the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried searching the community for answers, but was unsuccessful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 20:43:21 GMT</pubDate>
    <dc:creator>cnilsen</dc:creator>
    <dc:date>2019-02-22T20:43:21Z</dc:date>
    <item>
      <title>Replacing a character with a blank in a string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537852#M33116</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a novice programmer and facing a new programming challenge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with enterprise guide to create a data set to be exported ultimately..&amp;nbsp; (I estimate about 1.7 million records..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A character column within it contains periods (.) in some of the rows. (the value is not always found, or in the same position within the string) I'd like to scan the column and replace them if possible with a blank. I am not sure if the is a function that I can use with creating a calculated column OR, how I can create a data set, then run a proc statement against it to read the rows, scan/replace if found the value and update the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried searching the community for answers, but was unsuccessful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 20:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537852#M33116</guid>
      <dc:creator>cnilsen</dc:creator>
      <dc:date>2019-02-22T20:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a character with a blank in a string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537853#M33117</link>
      <description>&lt;P&gt;Please post a sample of your input and the expect output&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 20:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537853#M33117</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-22T20:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a character with a blank in a string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537854#M33118</link>
      <description>&lt;P&gt;Yes, showing us an example of your data would definitely help get a quicker answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the TRANSLATE function in SAS will turn dots into blanks. There are examples in the documentation.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p05ww22zp7lcg3n1bjk7v93tscyo.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p05ww22zp7lcg3n1bjk7v93tscyo.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 20:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537854#M33118</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-22T20:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a character with a blank in a string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537861#M33119</link>
      <description>&lt;P&gt;a sample of text might be :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"MEXICAN RED. ROSES - BOUQUET."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like the result to be:&lt;/P&gt;&lt;P&gt;"MEXICAN RED ROSES - BOUQUET"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;since this column was manually keyed by someone.. it is not standardized in any way.&lt;/P&gt;&lt;P&gt;Typos and excessive punctuation are common with the column data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 20:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537861#M33119</guid>
      <dc:creator>cnilsen</dc:creator>
      <dc:date>2019-02-22T20:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a character with a blank in a string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537862#M33120</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;said, TRANSLATE does the trick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
   CREATE TABLE WORK.table AS 
   SELECT /* newval */
            (TRANSLATE(t1.OriginalCol, ' ', '.')) AS newval
      FROM WORK.original t1;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Feb 2019 20:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537862#M33120</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-02-22T20:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a character with a blank in a string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537865#M33121</link>
      <description>awesome... and very simple. I appreciate the quick responses from everyone. Thanks!</description>
      <pubDate>Fri, 22 Feb 2019 20:58:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537865#M33121</guid>
      <dc:creator>cnilsen</dc:creator>
      <dc:date>2019-02-22T20:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a character with a blank in a string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537866#M33122</link>
      <description>&lt;P&gt;Just a minor point here, but this example you show does not turn dots into blanks. It removes the dots from the text string, and does not put a blank in there at all. So which do you want? You might also want to look at the COMPRESS function.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 20:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replacing-a-character-with-a-blank-in-a-string/m-p/537866#M33122</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-22T20:58:41Z</dc:date>
    </item>
  </channel>
</rss>

