<?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 freq descending outcum in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-descending-outcum/m-p/634836#M188435</link>
    <description>&lt;P&gt;You may want to consider adding the option ORDER=FREQ to the Proc Freq. The output will be sorted by descending frequency of the variable. That is not exactly what your current output creates but it may be of interest.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2020 17:28:56 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-03-25T17:28:56Z</dc:date>
    <item>
      <title>proc freq descending outcum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-descending-outcum/m-p/634824#M188425</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I used the following SAS code to get cumulative count&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=have ;&lt;BR /&gt;tables pass2013/OUTCUM list missing out=want; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then I used the following to sort by descending of cumulative count&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=want; by CUM_FREQ descending; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But got error message of "Variable NAME not found" as following&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ERROR: Variable NAME not found.&lt;/P&gt;
&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, _ALL_, _CHARACTER_, _CHAR_,&lt;BR /&gt;_NUMERIC_.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 17:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-descending-outcum/m-p/634824#M188425</guid>
      <dc:creator>superbug</dc:creator>
      <dc:date>2020-03-25T17:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq descending outcum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-descending-outcum/m-p/634825#M188426</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;read the doc about descending option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=want; 
by descending CUM_FREQ ; 
run&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 17:06:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-descending-outcum/m-p/634825#M188426</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-03-25T17:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq descending outcum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-descending-outcum/m-p/634827#M188427</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35763"&gt;@yabwon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks much for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 17:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-descending-outcum/m-p/634827#M188427</guid>
      <dc:creator>superbug</dc:creator>
      <dc:date>2020-03-25T17:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq descending outcum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-descending-outcum/m-p/634836#M188435</link>
      <description>&lt;P&gt;You may want to consider adding the option ORDER=FREQ to the Proc Freq. The output will be sorted by descending frequency of the variable. That is not exactly what your current output creates but it may be of interest.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 17:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-descending-outcum/m-p/634836#M188435</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-25T17:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq descending outcum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-descending-outcum/m-p/634860#M188452</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks much for your suggestion!&lt;/P&gt;
&lt;P&gt;I noticed this option before I posted.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 18:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-descending-outcum/m-p/634860#M188452</guid>
      <dc:creator>superbug</dc:creator>
      <dc:date>2020-03-25T18:16:24Z</dc:date>
    </item>
  </channel>
</rss>

