<?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 Invalid numeric data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Invalid-numeric-data/m-p/501738#M72684</link>
    <description>&lt;P&gt;Im trying to create a new data set from an old one only using specific variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data confsemi;&lt;BR /&gt;&amp;nbsp;set nba1996_krcadin2_new;&lt;BR /&gt;&amp;nbsp;if tmID NE 'SEA' or 'HOU' then delete;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when i get my results only SEA shows up. In the log it claims that 'HOU' is a numeric value and therefore ignores it. Any suggestions??&lt;/P&gt;</description>
    <pubDate>Fri, 05 Oct 2018 03:04:23 GMT</pubDate>
    <dc:creator>jovane0700</dc:creator>
    <dc:date>2018-10-05T03:04:23Z</dc:date>
    <item>
      <title>Invalid numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Invalid-numeric-data/m-p/501738#M72684</link>
      <description>&lt;P&gt;Im trying to create a new data set from an old one only using specific variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data confsemi;&lt;BR /&gt;&amp;nbsp;set nba1996_krcadin2_new;&lt;BR /&gt;&amp;nbsp;if tmID NE 'SEA' or 'HOU' then delete;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when i get my results only SEA shows up. In the log it claims that 'HOU' is a numeric value and therefore ignores it. Any suggestions??&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 03:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Invalid-numeric-data/m-p/501738#M72684</guid>
      <dc:creator>jovane0700</dc:creator>
      <dc:date>2018-10-05T03:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Invalid-numeric-data/m-p/501739#M72685</link>
      <description>&lt;P&gt;This is not correct syntax:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; if tmID NE 'SEA' or 'HOU' then delete;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SAS see's the following instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; if &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;(tmID NE 'SEA')&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#800080"&gt;or 'HOU'&lt;/FONT&gt;&lt;/STRONG&gt; then delete;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Use IN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; if tmID not in ('SEA', 'HOU') then delete;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/231375"&gt;@jovane0700&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Im trying to create a new data set from an old one only using specific variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data confsemi;&lt;BR /&gt;&amp;nbsp;set nba1996_krcadin2_new;&lt;BR /&gt;&amp;nbsp;if tmID NE 'SEA' or 'HOU' then delete;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However when i get my results only SEA shows up. In the log it claims that 'HOU' is a numeric value and therefore ignores it. Any suggestions??&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 03:10:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Invalid-numeric-data/m-p/501739#M72685</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-05T03:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Invalid-numeric-data/m-p/501741#M72686</link>
      <description>&lt;P&gt;Thank you, I'm very new to this :)) &amp;nbsp; !!!!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 03:13:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Invalid-numeric-data/m-p/501741#M72686</guid>
      <dc:creator>jovane0700</dc:creator>
      <dc:date>2018-10-05T03:13:25Z</dc:date>
    </item>
  </channel>
</rss>

