<?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: Proc Means in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means/m-p/751337#M236502</link>
    <description>&lt;P&gt;Proc means will only do statistics for numeric variables. I have to assume you placed the name of a character variable on a VAR statement to generate that message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And why are you using Proc means if you want a number of records in a data set? Proc Contents will do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you could use proc summary with the variable on a CLASS statement (NO var variables).&lt;/P&gt;
&lt;P&gt;Or query sashelp.vtables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of piecemeal questions it might help to provide a description of where all this is going and some data.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jun 2021 18:44:23 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-06-30T18:44:23Z</dc:date>
    <item>
      <title>Proc Means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means/m-p/751329#M236499</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I need the total rows for a dataset.&amp;nbsp;I use proc means to get the count of a variable in a dataset,&lt;/P&gt;
&lt;P&gt;The query gives errors: log says: Variable memberletter in list doesn't match type prescribed for this list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume memberletter is a character and means requires data type as number.&lt;/P&gt;
&lt;P&gt;I used proc freq and that gave me the memberletter broken by the values that exists in the variable.&lt;/P&gt;
&lt;P&gt;I need a total line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Blue blue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 18:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Means/m-p/751329#M236499</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2021-06-30T18:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means/m-p/751337#M236502</link>
      <description>&lt;P&gt;Proc means will only do statistics for numeric variables. I have to assume you placed the name of a character variable on a VAR statement to generate that message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And why are you using Proc means if you want a number of records in a data set? Proc Contents will do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you could use proc summary with the variable on a CLASS statement (NO var variables).&lt;/P&gt;
&lt;P&gt;Or query sashelp.vtables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of piecemeal questions it might help to provide a description of where all this is going and some data.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 18:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Means/m-p/751337#M236502</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-30T18:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means/m-p/751339#M236504</link>
      <description>&lt;P&gt;PROC FREQ does give the total. It is the cumulative value in the last row:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=sashelp.class;
    tables sex;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This produces the total value of N, which is the value of 19 in the cumulative frequency in the last line&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="Capture.PNG" style="width: 402px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60869i688B02D4A92B8047/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 18:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Means/m-p/751339#M236504</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-30T18:56:46Z</dc:date>
    </item>
  </channel>
</rss>

