<?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: What is a SAS procedure that can be used to count the number of people? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520165#M3963</link>
    <description>&lt;P&gt;Is there one that doesn't use SQL statements? I tried using the proc freq but for some reason it just output the dataset I already had.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 21:49:45 GMT</pubDate>
    <dc:creator>sasnewbie5</dc:creator>
    <dc:date>2018-12-10T21:49:45Z</dc:date>
    <item>
      <title>What is a SAS procedure that can be used to count the number of people?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520158#M3959</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-12-10 at 4.35.13 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25526i2CF6D75B42775FA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-12-10 at 4.35.13 PM.png" alt="Screen Shot 2018-12-10 at 4.35.13 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is an appropriate procedure that I can use in SAS to count the number of people in each department? I've provided a snippet of the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 21:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520158#M3959</guid>
      <dc:creator>sasnewbie5</dc:creator>
      <dc:date>2018-12-10T21:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: What is a SAS procedure that can be used to count the number of people?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520161#M3960</link>
      <description>&lt;P&gt;proc freq/sql/summary.&amp;nbsp; take a look&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql;

create table want as

select dept, n(emp) as num_of_people

from have

group by dept;

quit;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 21:46:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520161#M3960</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-12-10T21:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: What is a SAS procedure that can be used to count the number of people?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520165#M3963</link>
      <description>&lt;P&gt;Is there one that doesn't use SQL statements? I tried using the proc freq but for some reason it just output the dataset I already had.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 21:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520165#M3963</guid>
      <dc:creator>sasnewbie5</dc:creator>
      <dc:date>2018-12-10T21:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is a SAS procedure that can be used to count the number of people?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520168#M3964</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc freq data= emp noprint;
	tables dept / missing out=temp(drop=percent);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 21:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520168#M3964</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2018-12-10T21:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is a SAS procedure that can be used to count the number of people?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520172#M3965</link>
      <description>&lt;P&gt;Please post usable sample data in the form of a data step if you want tested, usable code answers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=have;
   tables dept;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 21:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520172#M3965</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-12-10T21:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: What is a SAS procedure that can be used to count the number of people?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520197#M3971</link>
      <description>&lt;P&gt;How could I use a procedure to calculate the average salary and also the number of ppl in each department. The code I have below gives the following message:&amp;nbsp;&lt;STRONG&gt;Statement is not valid or it is used out of proper order.&amp;nbsp;&lt;/STRONG&gt;Not sure what the problem is. I was trying to use proc means.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data = hw9.combo;
	class dept;
	mean = salary;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 23:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-is-a-SAS-procedure-that-can-be-used-to-count-the-number-of/m-p/520197#M3971</guid>
      <dc:creator>sasnewbie5</dc:creator>
      <dc:date>2018-12-10T23:08:32Z</dc:date>
    </item>
  </channel>
</rss>

