<?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 — How to control order of ACROSS levels in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207828#M13776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another workaround is adding BLANKS before its value .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 14:02:39 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2015-06-17T14:02:39Z</dc:date>
    <item>
      <title>PROC REPORT — How to control order of ACROSS levels</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207824#M13772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In PROC REPORT, I have a variable which is defined as an ACROSS variable. I would like to control the order of the values of this variable that appear in PROC REPORT left to right in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for example, if I used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define defect_level/across "Defect Level";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this variable defect_level had three levels "Poor" "Average" "Excellent", I'd like them to appear left to right in that order. But apparently, the default mode of operation places these in alphabetical order, which I don't want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get these variable levels to appear in the order I want in the PROC REPORT output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 18:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207824#M13772</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-06-16T18:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT — How to control order of ACROSS levels</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207825#M13773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Usually, assuming your data are in the correct order you want, you can specify ORDER=DATA on the DEFINE statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;define defect_level / across &lt;SPAN style="color: #ff00ff; font-size: 14pt;"&gt;order=data&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, this output was produced with the program shown below -- note the order of the ACROSS items is not alpha order and not descending order either:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="10878" alt="order_data_report.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/10878_order_data_report.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;***Here is the program;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data fakedata;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; infile datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; input type $ row $ val;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;return;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;XXX AAA 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;XXX AAA 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;XXX BBB 30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;XXX BBB 40&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;XXX CCC 15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;HHH AAA 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;HHH BBB 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;HHH CCC 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;RRR AAA 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;RRR AAA 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;RRR BBB 40&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;RRR CCC 50&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\report_order.html';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=fakedata nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column row type,val;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define row / group;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define type / across order=data;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define val / sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 18:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207825#M13773</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-06-16T18:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT — How to control order of ACROSS levels</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207826#M13774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Cynthia. I knew it was something simple, and I am surprised that I couldn't find that option myself ... but that's what the forum is for!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 19:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207826#M13774</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-06-16T19:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT — How to control order of ACROSS levels</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207827#M13775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Look here for the DEFINE statement documentation: &lt;A href="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#p0wy1vqwvz43uhn1g77eb5xlvzqh.htm" title="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#p0wy1vqwvz43uhn1g77eb5xlvzqh.htm"&gt;Base SAS(R) 9.4 Procedures Guide, Third Edition&lt;/A&gt; ORDER= is a link that will take you directly to the description of the option. There are some other procedures that have an ORDER= option and they all generally work the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 19:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207827#M13775</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-06-16T19:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT — How to control order of ACROSS levels</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207828#M13776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another workaround is adding BLANKS before its value .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 14:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207828#M13776</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-06-17T14:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT — How to control order of ACROSS levels</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207829#M13777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; The "blank" technique doesn't always work the same in ALL destinations.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 23:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-How-to-control-order-of-ACROSS-levels/m-p/207829#M13777</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-06-17T23:31:14Z</dc:date>
    </item>
  </channel>
</rss>

