<?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 How to get n=0 in proc means in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-n-0-in-proc-means/m-p/866013#M342003</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Is it possible to get N=0 when there are zero observations in a dataset?&lt;/P&gt;
&lt;P&gt;Ex:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data cls;&lt;BR /&gt;set sashelp.class;&lt;BR /&gt;age=0;&lt;BR /&gt;if age ne 0;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the below, the output dataset is empty. Instead if I want to see N=0 indicating there are no records in a dataset, how can I do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc means data=cls stackodsoutput;&lt;BR /&gt;var age;&lt;BR /&gt;output out=cl_m;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 22:31:46 GMT</pubDate>
    <dc:creator>Tommer</dc:creator>
    <dc:date>2023-03-23T22:31:46Z</dc:date>
    <item>
      <title>How to get n=0 in proc means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-n-0-in-proc-means/m-p/866013#M342003</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Is it possible to get N=0 when there are zero observations in a dataset?&lt;/P&gt;
&lt;P&gt;Ex:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data cls;&lt;BR /&gt;set sashelp.class;&lt;BR /&gt;age=0;&lt;BR /&gt;if age ne 0;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the below, the output dataset is empty. Instead if I want to see N=0 indicating there are no records in a dataset, how can I do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc means data=cls stackodsoutput;&lt;BR /&gt;var age;&lt;BR /&gt;output out=cl_m;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 22:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-n-0-in-proc-means/m-p/866013#M342003</guid>
      <dc:creator>Tommer</dc:creator>
      <dc:date>2023-03-23T22:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get n=0 in proc means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-n-0-in-proc-means/m-p/866015#M342004</link>
      <description>&lt;P&gt;Statistical procedures need at least one row of data to report on, even if all variable values are missing. Zero rows means no statistics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to report on zero row tables then PROC CONTENTS is a better option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1679612252455.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81963i07D3E7C2B417FC6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASKiwi_0-1679612252455.png" alt="SASKiwi_0-1679612252455.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 22:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-n-0-in-proc-means/m-p/866015#M342004</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-03-23T22:58:35Z</dc:date>
    </item>
  </channel>
</rss>

