<?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: Missing Values Statement in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Missing-Values-Statement/m-p/521558#M4219</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/250795"&gt;@learn2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello! If I have a numeric variable (call it X) with a bunch of missing values in the dataset, &lt;STRONG&gt;what SAS command do I use to pull up only the observations with missing values?&lt;/STRONG&gt; Is it the nmiss function? If so, how do I structure my command? Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sounds like you need missing function&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where x=.;&lt;/P&gt;
&lt;P&gt;/*or*/&lt;/P&gt;
&lt;P&gt;where missing(x);&lt;/P&gt;
&lt;P&gt;/*or*/&lt;/P&gt;
&lt;P&gt;where x is missing;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/*or*/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;where x is null;&lt;/SPAN&gt;&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>Fri, 14 Dec 2018 16:56:44 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-12-14T16:56:44Z</dc:date>
    <item>
      <title>Missing Values Statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Missing-Values-Statement/m-p/521551#M4214</link>
      <description>&lt;P&gt;Hello! If I have a numeric variable (call it X) with a bunch of missing values in the dataset, what SAS command do I use to pull up only the observations with missing values? Is it the nmiss function? If so, how do I structure my command? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 16:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Missing-Values-Statement/m-p/521551#M4214</guid>
      <dc:creator>learn2</dc:creator>
      <dc:date>2018-12-14T16:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Values Statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Missing-Values-Statement/m-p/521553#M4216</link>
      <description>&lt;P&gt;The WHERE statement can subset:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where var &amp;gt; . ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It can be used in either a DATA step or a procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Technically, if you have special missing values in your data, you would use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where var &amp;gt; .Z ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like that would not be an issue for you and you would be safe with the first statement.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 16:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Missing-Values-Statement/m-p/521553#M4216</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-12-14T16:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Values Statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Missing-Values-Statement/m-p/521555#M4217</link>
      <description>Use the MISSING() function, since it works the same on character and numeric variables. &lt;BR /&gt;This would return all records missing x. &lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;if missing(x);&lt;BR /&gt;run;</description>
      <pubDate>Fri, 14 Dec 2018 16:50:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Missing-Values-Statement/m-p/521555#M4217</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-14T16:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Values Statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Missing-Values-Statement/m-p/521558#M4219</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/250795"&gt;@learn2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello! If I have a numeric variable (call it X) with a bunch of missing values in the dataset, &lt;STRONG&gt;what SAS command do I use to pull up only the observations with missing values?&lt;/STRONG&gt; Is it the nmiss function? If so, how do I structure my command? Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sounds like you need missing function&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where x=.;&lt;/P&gt;
&lt;P&gt;/*or*/&lt;/P&gt;
&lt;P&gt;where missing(x);&lt;/P&gt;
&lt;P&gt;/*or*/&lt;/P&gt;
&lt;P&gt;where x is missing;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/*or*/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;where x is null;&lt;/SPAN&gt;&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>Fri, 14 Dec 2018 16:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Missing-Values-Statement/m-p/521558#M4219</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-12-14T16:56:44Z</dc:date>
    </item>
  </channel>
</rss>

