<?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: Deleting the rows with missing values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Deleting-the-rows-with-missing-values/m-p/233951#M42749</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if cmiss(of _numeric_, of _character_) = 0;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can we just :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if cmiss(of _all_) = 0;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2015 00:35:48 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2015-11-10T00:35:48Z</dc:date>
    <item>
      <title>Deleting the rows with missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-the-rows-with-missing-values/m-p/233930#M42738</link>
      <description>&lt;P&gt;I have a data set which has many missing values. I am trying to eliminate the missing values by using if then else statement. But I could not do that. The dataset which I have is in labelled and formatted form.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data sample;&lt;/P&gt;&lt;P&gt;input age $gender $race;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;4 M&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 F hispanic&lt;/P&gt;&lt;P&gt;3 F black&lt;/P&gt;&lt;P&gt;&amp;nbsp;. M&amp;nbsp;&lt;/P&gt;&lt;P&gt;7 &amp;nbsp; &amp;nbsp;Hispanic&lt;/P&gt;&lt;P&gt;5 M white&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to include only the observations with full data eliminating the missing values. For example, from the above data I need to include only 2nd and 6th rows in the data set eliminating all the rows with missing observations. How can I do that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 22:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-the-rows-with-missing-values/m-p/233930#M42738</guid>
      <dc:creator>danwarags</dc:creator>
      <dc:date>2015-11-09T22:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the rows with missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-the-rows-with-missing-values/m-p/233934#M42741</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if cmiss(of _numeric_, of _character_) = 0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 22:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-the-rows-with-missing-values/m-p/233934#M42741</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-11-09T22:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the rows with missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-the-rows-with-missing-values/m-p/233948#M42748</link>
      <description>&lt;P&gt;Is your data already in a SAS data set, or are you needing to read it in? &amp;nbsp;This variation would overcome problems with INPUT when there are fewer than 3 items on a line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;input&amp;nbsp;@;&lt;/P&gt;
&lt;P&gt;if scan(_infile_, 3, ' ')=' ' then delete;&lt;/P&gt;
&lt;P&gt;else input age gender $ race $;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;4 M&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 F hispanic&lt;/P&gt;
&lt;P&gt;3 F black&lt;/P&gt;
&lt;P&gt;&amp;nbsp;. M&amp;nbsp;&lt;/P&gt;
&lt;P&gt;7 &amp;nbsp; &amp;nbsp;Hispanic&lt;/P&gt;
&lt;P&gt;5 M white&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 00:09:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-the-rows-with-missing-values/m-p/233948#M42748</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-11-10T00:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the rows with missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-the-rows-with-missing-values/m-p/233951#M42749</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if cmiss(of _numeric_, of _character_) = 0;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can we just :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if cmiss(of _all_) = 0;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 00:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-the-rows-with-missing-values/m-p/233951#M42749</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-11-10T00:35:48Z</dc:date>
    </item>
  </channel>
</rss>

