<?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: how to find an &amp;quot;empty&amp;quot; observation? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97248#M27457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if i have 2 variables present and rest all missing and need to delete those type of observations.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;For example gender and class should be excluded and need to check the rest all missing observations and delete those which have all missing values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Mar 2013 12:38:43 GMT</pubDate>
    <dc:creator>venkatard</dc:creator>
    <dc:date>2013-03-21T12:38:43Z</dc:date>
    <item>
      <title>how to find an "empty" observation?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97239#M27448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt; I have a dataset with about 6000 observations and over 1000 variables, some of them may have a value only for one variable - ID, how can I find these observations without listing ALL 1000 variables as missing in my code? something general?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope someone knows!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 16:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97239#M27448</guid>
      <dc:creator>GalMed</dc:creator>
      <dc:date>2012-08-17T16:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to find an "empty" observation?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97240#M27449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ... try CMISS (idea posted a few times by Linlin) ... if ID is never missing you can take that check out of the IF statement&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;data x;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;input id gender :$1. a b c;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;datalines;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;1 M 9 9 9&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;2 . . . .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;3 F 9 . 9&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;. F . . .&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;* specify number of variables-1 for CMISS finction;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;data y;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;set x;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;if ^missing(id) and cmiss(of _all_) eq&amp;nbsp; 4;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp; gender&amp;nbsp;&amp;nbsp;&amp;nbsp; a&amp;nbsp;&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp;&amp;nbsp; c&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 16:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97240#M27449</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2012-08-17T16:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to find an "empty" observation?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97241#M27450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this (based on a recent SAS-L discussion):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have (drop=id);&lt;/P&gt;&lt;P&gt;&amp;nbsp; _n_=&amp;nbsp; ( n(of _numeric_)&amp;gt;0)&amp;nbsp; + (coalescec(of _character_)^=' ');&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have (keep=id);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _n_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The revealing part of this (to me) was to learn that ID was not included when the "of _numeric_" and "of _character_" were compiled, so it did not interfere with the testing for all missing values. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 18:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97241#M27450</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2012-08-17T18:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to find an "empty" observation?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97242#M27451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one more way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE lang="xml"&gt;data x;
input id gender :$1. a b c;
datalines;
1 M 9 9 9
2 . . . .
3 F 9 . 9
. F . . .
;
run;


options missing=' ';
data want;
 set x;
 if cats(of _all_)=cats(id) ;
run;




&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 02:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97242#M27451</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-08-20T02:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to find an "empty" observation?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97243#M27452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And, you can take Ksharp's, or any of the suggestions, and incorporate the logic into code that separates the missing and non-missing records.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input id gender :$1. a b c;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 M 9 9 9&lt;/P&gt;&lt;P&gt;2 . . . .&lt;/P&gt;&lt;P&gt;3 F 9 . 9&lt;/P&gt;&lt;P&gt;. . . . .&lt;/P&gt;&lt;P&gt;. F . . .&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options missing=' ';&lt;/P&gt;&lt;P&gt;data want missing;&lt;/P&gt;&lt;P&gt; set have;&lt;/P&gt;&lt;P&gt; if missing(cats(of _all_))&lt;/P&gt;&lt;P&gt;&amp;nbsp; or cats(of _all_)=cats(id)&lt;/P&gt;&lt;P&gt;&amp;nbsp; then output missing;&lt;/P&gt;&lt;P&gt; else output want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 02:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97243#M27452</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-08-20T02:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to find an "empty" observation?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97244#M27453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;" Yes, using the "options missing=' '&amp;nbsp; in combination with a single "if missing(cats(of _all_))" is seductive, &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; BUT ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it only works with plain vanilla numeric missing values.&amp;nbsp; As a counter-example, consider that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;options missing=' ';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; x=.A;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; if missing(cats(of _all_)) then putlog 'missing';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; else putlog 'Not missing';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;will produce "Not missing" on the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as you have any numeric values I don't see how to efficiently avoid separately testing numerics and character variables for 100% missing-ness.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'll go back to my earlier suggestion with a minor modification to adapt to the possibility that the incoming data set night have only one type of variable.&amp;nbsp; Lets assume there are 3 ID variables that should be excluded from the testing.&amp;nbsp; Then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data want (drop=_:);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; retain _chr ' '&amp;nbsp; _num .;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; set have;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; call missing(id1, id2, id3);&amp;nbsp; ** Avoid false positives in the test for all missing **;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; _allmiss=&amp;nbsp;&amp;nbsp; (N(of _numeric_)=0)) and (coalescec(of _character_)=' ');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have (keep=id1 id2 id3);&amp;nbsp;&amp;nbsp; ** Go back and get the excluded variables **;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _allmiss;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The leading RETAIN statement assures that there is at least one variables of each type, so that the N and COALESCEC functions don't produce a "no arguments" error condition.&lt;/LI&gt;&lt;LI&gt;The first SET statement doesn't have the "drop=id1 id2 id3") option that I used earlier, because I don't want to change the order of variables in WANT.&amp;nbsp; Hence a "call missing" statement must precede the test for all missing numerics and characters.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 12:53:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97244#M27453</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2012-08-20T12:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to find an "empty" observation?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97245#M27454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ha. It looks like we need some more code to be stronger .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data have;
input id gender :$1. a b c;
datalines;
1 M 9 9 9
2 . . .b ._
3 F 9 . 9
. . .a . .z
. F . . .
;
run;&amp;nbsp;&amp;nbsp; 
options missing=' ';
data want missing;
 set have;
 array _a{*} _numeric_;
 do _n_=1 to dim(_a) ;
&amp;nbsp; if missing(_a{_n_}) then call missing(_a{_n_});
 end;

if missing(cats(of _all_))
&amp;nbsp; or cats(of _all_)=cats(id)
&amp;nbsp; then output missing;
else output want;
run;
run;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 02:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97245#M27454</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-08-21T02:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to find an "empty" observation?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97246#M27455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see the benefit of this approach.&amp;nbsp; It confirms the assertion that numeric values have to be treated separately from character values, and it unneccesarily loses information by collapsing all numeric missing codes to a single value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 02:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97246#M27455</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2012-08-21T02:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to find an "empty" observation?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97247#M27456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks to all of you for help.&lt;/P&gt;&lt;P&gt;Works nicely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 14:54:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97247#M27456</guid>
      <dc:creator>GalMed</dc:creator>
      <dc:date>2012-08-22T14:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to find an "empty" observation?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97248#M27457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if i have 2 variables present and rest all missing and need to delete those type of observations.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;For example gender and class should be excluded and need to check the rest all missing observations and delete those which have all missing values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 12:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97248#M27457</guid>
      <dc:creator>venkatard</dc:creator>
      <dc:date>2013-03-21T12:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to find an "empty" observation?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97249#M27458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pick the solution you want and just include a drop option.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;data have;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;input id gender :$1. class a b c;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;datalines;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;1 M 1 9 9 9&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;2 . 1 . . .&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;3 F 2 9 . 9&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;. . 3 . . .&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;. F 3 . . .&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;options missing=' ';&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;data want missing;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;set have (drop=gender class);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;if missing(cats(of _all_))&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; or cats(of _all_)=cats(id)&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; then output missing;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;else output want;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;run;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/135693/edit" style="font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 13:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-an-quot-empty-quot-observation/m-p/97249#M27458</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-03-21T13:25:48Z</dc:date>
    </item>
  </channel>
</rss>

