<?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 REPORT sorting ANALYSIS variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-sorting-ANALYSIS-variables/m-p/69460#M19940</link>
    <description>Thanks Cynthia!&lt;BR /&gt;
&lt;BR /&gt;
I had found that paper yesterday and that's how I circumvented the problem - summarized the data ahead of time and then used that as an ORDER variable and that worked perfectly.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the response.&lt;BR /&gt;
&lt;BR /&gt;
Sue</description>
    <pubDate>Fri, 16 Jan 2009 16:29:20 GMT</pubDate>
    <dc:creator>SusieQ324</dc:creator>
    <dc:date>2009-01-16T16:29:20Z</dc:date>
    <item>
      <title>PROC REPORT sorting ANALYSIS variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-sorting-ANALYSIS-variables/m-p/69458#M19938</link>
      <description>Is it possible to sort an ANALYSIS defined variable in descending order?  I haven't found the option that's applicable to the ANALYSIS definition.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
Sue</description>
      <pubDate>Thu, 15 Jan 2009 15:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-sorting-ANALYSIS-variables/m-p/69458#M19938</guid>
      <dc:creator>SusieQ324</dc:creator>
      <dc:date>2009-01-15T15:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT sorting ANALYSIS variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-sorting-ANALYSIS-variables/m-p/69459#M19939</link>
      <description>Hi:&lt;BR /&gt;
  Look at Example 3 in this paper:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/forum2008/173-2008.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2008/173-2008.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  You can't sort directly on an ANALYSIS variable -- if your report is a SUMMARIZED report -- however, you can make a copy of the analysis variable and then use that copy of the variable's summarized value to control ordering. That's what Example 3 shows.&lt;BR /&gt;
 &lt;BR /&gt;
  If you have a DETAIL report -- where each report row represents 1 observation in the data set -- then you can control the order of the detail report by sorting the way you want with PROC SORT -- before the PROC REPORT step. Then if you list your variables as just DISPLAY and ANALYSIS, you will get the SORT order in your report.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 16 Jan 2009 16:22:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-sorting-ANALYSIS-variables/m-p/69459#M19939</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-01-16T16:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT sorting ANALYSIS variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-sorting-ANALYSIS-variables/m-p/69460#M19940</link>
      <description>Thanks Cynthia!&lt;BR /&gt;
&lt;BR /&gt;
I had found that paper yesterday and that's how I circumvented the problem - summarized the data ahead of time and then used that as an ORDER variable and that worked perfectly.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the response.&lt;BR /&gt;
&lt;BR /&gt;
Sue</description>
      <pubDate>Fri, 16 Jan 2009 16:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-sorting-ANALYSIS-variables/m-p/69460#M19940</guid>
      <dc:creator>SusieQ324</dc:creator>
      <dc:date>2009-01-16T16:29:20Z</dc:date>
    </item>
  </channel>
</rss>

