<?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 Find no of missing observations for character in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Find-no-of-missing-observations-for-character/m-p/75942#M22040</link>
    <description>Hi i ave a data set&lt;BR /&gt;
&lt;BR /&gt;
data lo;&lt;BR /&gt;
input id $  sal $ ;&lt;BR /&gt;
cards;&lt;BR /&gt;
dfgh     &lt;BR /&gt;
dfgh  dsfhdsf&lt;BR /&gt;
dfgh  urkrkrj&lt;BR /&gt;
        fjhjh&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Now i want the no of observations missing in that variables and no of non missing observations</description>
    <pubDate>Mon, 02 Mar 2009 06:05:34 GMT</pubDate>
    <dc:creator>R_Win</dc:creator>
    <dc:date>2009-03-02T06:05:34Z</dc:date>
    <item>
      <title>Find no of missing observations for character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-no-of-missing-observations-for-character/m-p/75942#M22040</link>
      <description>Hi i ave a data set&lt;BR /&gt;
&lt;BR /&gt;
data lo;&lt;BR /&gt;
input id $  sal $ ;&lt;BR /&gt;
cards;&lt;BR /&gt;
dfgh     &lt;BR /&gt;
dfgh  dsfhdsf&lt;BR /&gt;
dfgh  urkrkrj&lt;BR /&gt;
        fjhjh&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Now i want the no of observations missing in that variables and no of non missing observations</description>
      <pubDate>Mon, 02 Mar 2009 06:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-no-of-missing-observations-for-character/m-p/75942#M22040</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2009-03-02T06:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find no of missing observations for character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-no-of-missing-observations-for-character/m-p/75943#M22041</link>
      <description>You'll need to add an infile with a missover option so that SAS will not simply skip the blank value for the second varibale and go to the next line, as it will by defualt. &lt;BR /&gt;
&lt;BR /&gt;
Then simply add a couple counters (you would normally need to use a retain to carry the values of the counters from one iteration to the next but this syntax will retain automatically).&lt;BR /&gt;
&lt;BR /&gt;
data lo;&lt;BR /&gt;
infile cards missover;&lt;BR /&gt;
input id $ sal $ ;&lt;BR /&gt;
if id='' or sal='' then no_of_missing+1;&lt;BR /&gt;
else no_of_non_missing+1;&lt;BR /&gt;
cards;&lt;BR /&gt;
dfgh &lt;BR /&gt;
dfgh dsfhdsf&lt;BR /&gt;
dfgh urkrkrj&lt;BR /&gt;
fjhjh&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 02 Mar 2009 11:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-no-of-missing-observations-for-character/m-p/75943#M22041</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-02T11:24:35Z</dc:date>
    </item>
  </channel>
</rss>

