<?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 filter out/remove text in a column containing text and numeric values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-out-remove-text-in-a-column-containing-text-and/m-p/643501#M192053</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I want to filter out/remove the text "declaration" in my table, so that i only have the numeric value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="amsa1996_0-1588069348023.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38814i0D4821956F217FBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="amsa1996_0-1588069348023.png" alt="amsa1996_0-1588069348023.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 10:22:53 GMT</pubDate>
    <dc:creator>amsa1996</dc:creator>
    <dc:date>2020-04-28T10:22:53Z</dc:date>
    <item>
      <title>How to filter out/remove text in a column containing text and numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-out-remove-text-in-a-column-containing-text-and/m-p/643501#M192053</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I want to filter out/remove the text "declaration" in my table, so that i only have the numeric value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="amsa1996_0-1588069348023.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38814i0D4821956F217FBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="amsa1996_0-1588069348023.png" alt="amsa1996_0-1588069348023.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 10:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-out-remove-text-in-a-column-containing-text-and/m-p/643501#M192053</guid>
      <dc:creator>amsa1996</dc:creator>
      <dc:date>2020-04-28T10:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out/remove text in a column containing text and numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-out-remove-text-in-a-column-containing-text-and/m-p/643503#M192054</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input case_concept_name $ 1-20;
datalines;
declaration 14447
declaration 14750
declaration 76001
declaration 14559
declaration 85327
;

data want;
    set have;
    newvar = input(compress(case_concept_name, , 'kd'), 8.);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Apr 2020 10:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-out-remove-text-in-a-column-containing-text-and/m-p/643503#M192054</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-04-28T10:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out/remove text in a column containing text and numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-out-remove-text-in-a-column-containing-text-and/m-p/643572#M192103</link>
      <description>&lt;P&gt;Please DO NOT post data as pictures. I'm not hired as your typist.&lt;/P&gt;
&lt;P&gt;This will do it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
newvar = input(scan(case_concept_name,2),best.);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Apr 2020 12:18:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-out-remove-text-in-a-column-containing-text-and/m-p/643572#M192103</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-28T12:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out/remove text in a column containing text and numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-out-remove-text-in-a-column-containing-text-and/m-p/643576#M192105</link>
      <description>Sorry about that...&lt;BR /&gt;&lt;BR /&gt;Thank you for your help! It worked.</description>
      <pubDate>Tue, 28 Apr 2020 12:48:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-out-remove-text-in-a-column-containing-text-and/m-p/643576#M192105</guid>
      <dc:creator>amsa1996</dc:creator>
      <dc:date>2020-04-28T12:48:42Z</dc:date>
    </item>
  </channel>
</rss>

