<?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 count in proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797137#M255865</link>
    <description>&lt;P&gt;Hi guys&lt;/P&gt;
&lt;P&gt;how to count cars makers list in sashelp.cars using proc report&lt;/P&gt;</description>
    <pubDate>Fri, 18 Feb 2022 06:04:08 GMT</pubDate>
    <dc:creator>BrahmanandaRao</dc:creator>
    <dc:date>2022-02-18T06:04:08Z</dc:date>
    <item>
      <title>count in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797137#M255865</link>
      <description>&lt;P&gt;Hi guys&lt;/P&gt;
&lt;P&gt;how to count cars makers list in sashelp.cars using proc report&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797137#M255865</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2022-02-18T06:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: count in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797140#M255866</link>
      <description>&lt;P&gt;What have you tried? Why proc report? &lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:12:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797140#M255866</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-02-18T06:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: count in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797141#M255867</link>
      <description>&lt;P&gt;count&amp;nbsp; no of car makers list&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797141#M255867</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2022-02-18T06:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: count in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797144#M255870</link>
      <description>&lt;P&gt;So you aren't limited to use proc report?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797144#M255870</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-02-18T06:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: count in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797147#M255872</link>
      <description>&lt;P&gt;Show us what you tried, so we can point out where you went wrong.&lt;/P&gt;
&lt;P&gt;I mean, you did try&amp;nbsp;&lt;EM&gt;something&lt;/EM&gt;, or do you expect that for all your life, others will do your work?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797147#M255872</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-18T06:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: count in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797149#M255874</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ds;
set sashelp.cars;

run;

proc sort data=ds;
by make;
run;


data ds2 (keep=make);
set ds;
by make;
if last.make then output;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hi Kurt_Bremser&lt;/P&gt;
&lt;P&gt;I tried&amp;nbsp; but i am looking output in proc report&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797149#M255874</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2022-02-18T06:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: count in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797151#M255875</link>
      <description>&lt;P&gt;Then read the documentation of PROC REPORT and start hacking away. You will learn a&amp;nbsp;&lt;STRONG&gt;LOT&lt;/STRONG&gt; doing that.&lt;/P&gt;
&lt;P&gt;Hint: PROC REPORT provides a statistic (n) that has the count.&lt;/P&gt;
&lt;P&gt;Also do a Google search for "sas counting in proc report".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797151#M255875</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-18T06:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: count in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797209#M255893</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ds;
set sashelp.cars;

run;

proc sort data=ds;
by make;
run;


data ds2 (keep=make);
set ds;
by make;
if last.make then output;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hi Kurt_Bremser&lt;/P&gt;
&lt;P&gt;I tried&amp;nbsp; but i am looking output in proc report&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068" target="_self"&gt;Maxim 14 — Use the Right Tool&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For tasks that are essentially counting, use PROC FREQ, no need to create new data sets and sort the new data sets. All you need is four lines of code (and the first line is really optional, you could leave it out):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select nlevels;
proc freq data=sashelp.cars nlevels;
    tables make;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you really really really need it from PROC REPORT, show us what the report should look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 12:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797209#M255893</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-18T12:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: count in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797338#M286744</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; There are several procedures, including PROC FREQ, PROC TABULATE as well as PROC REPORT and PROC SQL that could generate counts for you. 3 of these procedures are shown below -- going from least lines of code to most lines of code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1645222720240.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68676iE6C7976607808B5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1645222720240.png" alt="Cynthia_sas_0-1645222720240.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 22:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-in-proc-report/m-p/797338#M286744</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-02-18T22:19:08Z</dc:date>
    </item>
  </channel>
</rss>

