<?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: Ascending order in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Ascending-order/m-p/596216#M171635</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21262"&gt;@hashman&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290618"&gt;@ivethguzman&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;First, sort you input file by REGION EXPENSES; then run your proc PRINT as is against the result.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Now I'm confused.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The original question asked for each STATE in ascending order.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;what are the advertising expenditures for each state (in ascending order)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Mon, 14 Oct 2019 11:26:15 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-10-14T11:26:15Z</dc:date>
    <item>
      <title>Ascending order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ascending-order/m-p/596113#M171590</link>
      <description>&lt;P&gt;Hello, I believe I am in the right path but don't know how to rearrange a variable in my data in ascending order.&lt;/P&gt;&lt;P&gt;The question is :&lt;/P&gt;&lt;P&gt;For each region, how many salesmen are in each state, what are the advertising expenditures for each state (in ascending order), and what is the total advertising expenditure for the region&lt;/P&gt;&lt;P&gt;This is what I have so far:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=datain .newstate;
 	      sum expenses ;
	      by region;
	      options byline;
	      title ‘The sum of salesman for each region by state’;
	      
	      run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have attached a file of the output.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2019 21:16:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ascending-order/m-p/596113#M171590</guid>
      <dc:creator>ivethguzman</dc:creator>
      <dc:date>2019-10-13T21:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ascending order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ascending-order/m-p/596132#M171598</link>
      <description>&lt;P&gt;What is wrong with this output?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 01:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ascending-order/m-p/596132#M171598</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-14T01:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ascending order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ascending-order/m-p/596144#M171606</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290618"&gt;@ivethguzman&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;First, sort you input file by REGION EXPENSES; then run your proc PRINT as is against the result.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 02:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ascending-order/m-p/596144#M171606</guid>
      <dc:creator>hashman</dc:creator>
      <dc:date>2019-10-14T02:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ascending order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ascending-order/m-p/596216#M171635</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21262"&gt;@hashman&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290618"&gt;@ivethguzman&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;First, sort you input file by REGION EXPENSES; then run your proc PRINT as is against the result.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Now I'm confused.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The original question asked for each STATE in ascending order.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;what are the advertising expenditures for each state (in ascending order)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 14 Oct 2019 11:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ascending-order/m-p/596216#M171635</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-14T11:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ascending order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ascending-order/m-p/596317#M171678</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;: The sentence can be interpreted as ascending by state or by expenditures. Since the OP's output was already by state within region, while the expenditures within region were disordered, of which s/he seemed to be complaining, ergo ... Perhaps the goal was to use the output to eyeball more readily which states within region had lower expenditures and which ones - higher. Agree that the task could be formulated less murkily.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 16:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ascending-order/m-p/596317#M171678</guid>
      <dc:creator>hashman</dc:creator>
      <dc:date>2019-10-14T16:17:19Z</dc:date>
    </item>
  </channel>
</rss>

