<?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: Sort Mean in Ascending order without Proc Sort in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389891#M25189</link>
    <description>&lt;P&gt;For your special requirements, entire thing can be done in a data step. No need for Proc Sort, Proc Means.&lt;/P&gt;
&lt;P&gt;Do you like a data step?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2017 16:19:38 GMT</pubDate>
    <dc:creator>KachiM</dc:creator>
    <dc:date>2017-08-22T16:19:38Z</dc:date>
    <item>
      <title>Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389855#M25172</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;If I have a list of saleprice, but I need to get the mean of it (in ascending order) and categories under One variable FloorAreaCat. How do I write the code in Single Proc means step? (p/s I do not want to use Proc sort step&amp;nbsp;in this case)&lt;BR /&gt;Appreciate if can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389855#M25172</guid>
      <dc:creator>BabyWS2001</dc:creator>
      <dc:date>2017-08-22T15:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389861#M25175</link>
      <description>AFAIK this isn't possible, without an additional step. If you're working with a single variable consider using PROC SQL instead.&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389861#M25175</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-22T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389867#M25177</link>
      <description>&lt;P&gt;What if under the FloorAreaCat consist of "None", "Equal" or "Type" variables, can we do it?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389867#M25177</guid>
      <dc:creator>BabyWS2001</dc:creator>
      <dc:date>2017-08-22T15:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389871#M25182</link>
      <description>AFAIK there's no way to sort based on the value of the MEAN. I'm not sure what the values of FloorAreaCat have to do with that.</description>
      <pubDate>Tue, 22 Aug 2017 15:49:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389871#M25182</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-22T15:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389874#M25183</link>
      <description>Do you want like:&lt;BR /&gt;TYPE      30.52&lt;BR /&gt;NONE     25.20&lt;BR /&gt;EQUAL   10.45</description>
      <pubDate>Tue, 22 Aug 2017 15:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389874#M25183</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2017-08-22T15:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389876#M25184</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select make, mean(msrp) as avg_msrp format=8.1
from sashelp.cars
group by make /*BY or CLASS variables go here and in the SELECT statement*/
order by calculated avg_msrp ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:58:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389876#M25184</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-22T15:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389877#M25185</link>
      <description>&lt;P&gt;How about the below? Can I sort the Mean in ascending order? I have already found the Mean value of my saleprice, and group it under the FlorrAreaCat but I can't seem to sort the Mean value. Can it be done under the same Proc Means Step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FloorAreaCat&amp;nbsp;&amp;nbsp; N Obs&amp;nbsp;&amp;nbsp;&amp;nbsp; Mean (SalePrice)&lt;/P&gt;&lt;P&gt;Equal&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200000&lt;/P&gt;&lt;P&gt;None&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 800&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 150000&lt;/P&gt;&lt;P&gt;Small&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 90&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 340000&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 16:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389877#M25185</guid>
      <dc:creator>BabyWS2001</dc:creator>
      <dc:date>2017-08-22T16:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389878#M25186</link>
      <description>&lt;P&gt;Provide a small example data set and what the result needs to look like.&lt;/P&gt;
&lt;P&gt;Write a data step to provide the example data or Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any artificial restriction of "cannot use Proc sort" is similar to "I want to eat canned food without opening the can".&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389878#M25186</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-22T15:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389879#M25187</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/160174"&gt;@BabyWS2001&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;How about the below? Can I sort the Mean in ascending order? I have already found the Mean value of my saleprice, and group it under the FlorrAreaCat but I can't seem to sort the Mean value. Can it be done under the same Proc Means Step?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FloorAreaCat&amp;nbsp;&amp;nbsp; N Obs&amp;nbsp;&amp;nbsp;&amp;nbsp; Mean (SalePrice)&lt;/P&gt;
&lt;P&gt;Equal&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200000&lt;/P&gt;
&lt;P&gt;None&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 800&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 150000&lt;/P&gt;
&lt;P&gt;Small&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 90&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34000&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's DESCENDING order......&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:59:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389879#M25187</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-22T15:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389883#M25188</link>
      <description>&lt;P&gt;Any problem that says you can't use PROC SORT to get things properly sorted seems like it's a made up problem.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 16:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389883#M25188</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-08-22T16:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389891#M25189</link>
      <description>&lt;P&gt;For your special requirements, entire thing can be done in a data step. No need for Proc Sort, Proc Means.&lt;/P&gt;
&lt;P&gt;Do you like a data step?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 16:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389891#M25189</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2017-08-22T16:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389895#M25191</link>
      <description>&lt;P&gt;Is ok, cause this is my Uni SAS programing assignment question. Will try to find a way out if there no way to solve this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 16:29:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389895#M25191</guid>
      <dc:creator>BabyWS2001</dc:creator>
      <dc:date>2017-08-22T16:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389898#M25192</link>
      <description>Post the exact question then, there's the possibility you're misinterpreting the question.</description>
      <pubDate>Tue, 22 Aug 2017 16:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389898#M25192</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-22T16:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389919#M25194</link>
      <description>&lt;P&gt;Here the&amp;nbsp;&amp;nbsp;question&lt;/P&gt;&lt;P&gt;(q) list down in ascending order the mean sale price, categories under variable of FloorAreaCat. Use single Proc Means step to answer this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 17:03:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389919#M25194</guid>
      <dc:creator>BabyWS2001</dc:creator>
      <dc:date>2017-08-22T17:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389921#M25196</link>
      <description>&lt;P&gt;A single PROC MEANS doesn't mean you can't use SORT in my opinion. Or maybe there is a way...I would check your class notes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/160174"&gt;@BabyWS2001&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Here the&amp;nbsp;&amp;nbsp;question&lt;/P&gt;
&lt;P&gt;(q) list down in ascending order the mean sale price, categories under variable of FloorAreaCat. Use single Proc Means step to answer this question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 17:07:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389921#M25196</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-22T17:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389928#M25197</link>
      <description>&lt;P&gt;Thanks,so if use sort do you use the Proc Sort or Order statement? Cause I can't seem to sort the mean once i use Class statement code as stated below...&lt;/P&gt;&lt;P&gt;I can't use Class SalePrice/Ascending as it will show all the mean saleprice and not group by the FloorAreaCat....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Mean data=work.analysis mean;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Class FloorAreaCat;&lt;/P&gt;&lt;P&gt;&amp;nbsp;var SalePrice;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 17:16:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389928#M25197</guid>
      <dc:creator>BabyWS2001</dc:creator>
      <dc:date>2017-08-22T17:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389930#M25198</link>
      <description>You need to first store your data in a data set then you sort that data set.&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Aug 2017 17:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389930#M25198</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-22T17:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Mean in Ascending order without Proc Sort</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389932#M25199</link>
      <description>&lt;P&gt;Ok, I will sort that dataset first. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 17:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sort-Mean-in-Ascending-order-without-Proc-Sort/m-p/389932#M25199</guid>
      <dc:creator>BabyWS2001</dc:creator>
      <dc:date>2017-08-22T17:21:50Z</dc:date>
    </item>
  </channel>
</rss>

