<?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 counting the missing character and numeric obs in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/counting-the-missing-character-and-numeric-obs/m-p/9981#M861</link>
    <description>Hi i have a data  set&lt;BR /&gt;
&lt;BR /&gt;
data d;&lt;BR /&gt;
input name $ age;&lt;BR /&gt;
cards;&lt;BR /&gt;
23 nani&lt;BR /&gt;
45 rahul&lt;BR /&gt;
34                                                           muni                                                   &lt;BR /&gt;
&lt;BR /&gt;
Now i want the no of missing and no missing observations in that obseravions&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Main&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Main

Message was edited by: Main</description>
    <pubDate>Tue, 24 Mar 2009 11:54:30 GMT</pubDate>
    <dc:creator>R_Win</dc:creator>
    <dc:date>2009-03-24T11:54:30Z</dc:date>
    <item>
      <title>counting the missing character and numeric obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/counting-the-missing-character-and-numeric-obs/m-p/9981#M861</link>
      <description>Hi i have a data  set&lt;BR /&gt;
&lt;BR /&gt;
data d;&lt;BR /&gt;
input name $ age;&lt;BR /&gt;
cards;&lt;BR /&gt;
23 nani&lt;BR /&gt;
45 rahul&lt;BR /&gt;
34                                                           muni                                                   &lt;BR /&gt;
&lt;BR /&gt;
Now i want the no of missing and no missing observations in that obseravions&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Main&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Main

Message was edited by: Main</description>
      <pubDate>Tue, 24 Mar 2009 11:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/counting-the-missing-character-and-numeric-obs/m-p/9981#M861</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2009-03-24T11:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: counting the missing character and numeric obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/counting-the-missing-character-and-numeric-obs/m-p/9982#M862</link>
      <description>[pre]&lt;BR /&gt;
* Test data;&lt;BR /&gt;
data class;&lt;BR /&gt;
   set sashelp.class;&lt;BR /&gt;
   if _n_ in(3,5,7) then call missing(of _character_);&lt;BR /&gt;
   if _n_ in(4,8) then call missing(of _numeric_);&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
* group data as missing or non-missing;&lt;BR /&gt;
proc format;&lt;BR /&gt;
   value  miss ._-.Z = '2' other='1';&lt;BR /&gt;
   value $miss   ' ' = '2' other='1';&lt;BR /&gt;
   run;&lt;BR /&gt;
* count;&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
proc freq data=class;&lt;BR /&gt;
   tables _all_ / missing;&lt;BR /&gt;
   format _character_ $miss. _numeric_ miss.; &lt;BR /&gt;
   ods output oneWayFreqs=OneWayFreqs;&lt;BR /&gt;
   run;&lt;BR /&gt;
ods listing;&lt;BR /&gt;
&lt;BR /&gt;
* prepare data for display;&lt;BR /&gt;
data Report(keep=Var N Nmiss);&lt;BR /&gt;
   length Var $32;&lt;BR /&gt;
   array _ns[2] N Nmiss;&lt;BR /&gt;
   do until(last.table);&lt;BR /&gt;
      set OneWayFreqs;&lt;BR /&gt;
      by table notsorted;&lt;BR /&gt;
      var = scan(table,-1);&lt;BR /&gt;
      _ns(input(vvaluex(var),F1.)) = Frequency;&lt;BR /&gt;
      end;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 24 Mar 2009 12:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/counting-the-missing-character-and-numeric-obs/m-p/9982#M862</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-03-24T12:25:05Z</dc:date>
    </item>
  </channel>
</rss>

