<?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--order=internal not giving expected results in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-order-internal-not-giving-expected-results/m-p/121187#M10437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks of your quick reply. This all makes sense now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, this is a somewhat subtle point and would be a good thing to put in the proc report documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Apr 2013 16:18:34 GMT</pubDate>
    <dc:creator>AdrianGriffin</dc:creator>
    <dc:date>2013-04-26T16:18:34Z</dc:date>
    <item>
      <title>Proc report--order=internal not giving expected results</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-order-internal-not-giving-expected-results/m-p/121185#M10435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use order=internal, proc report is not working as expected--see the second piece of code. Any ideas? One issue may be that the format for the column I am ordering by has leading spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*build custom format $indented.;&lt;/P&gt;&lt;P&gt;proc format cntlin=desktop.forformat; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options pageno=1;&lt;/P&gt;&lt;P&gt;proc report nofs headline headskip data=desktop.beadata;&lt;/P&gt;&lt;P&gt;&amp;nbsp; column ('--' category series series=label value);&lt;/P&gt;&lt;P&gt;&amp;nbsp; define category/group;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define series/group;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define label/group format=$indented.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define value/ format=comma9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; break after category/skip;&lt;/P&gt;&lt;P&gt;&amp;nbsp; title3 'Correct order of series--Total employment CA25.0010 etc. is before the industry detail for employment'; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Order=internal not producing expected results;&lt;/P&gt;&lt;P&gt;options pageno=1;&lt;/P&gt;&lt;P&gt;proc report nofs headline headskip data=desktop.beadata /* (where=(category='Employment')) */ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; column ('--' category series value);&lt;/P&gt;&lt;P&gt;&amp;nbsp; define category/group;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define series/group format=$indented. order=internal;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define value/ format=comma9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; break after category/skip;&lt;/P&gt;&lt;P&gt;&amp;nbsp; title3 'Order of series is not the internal order--total employment, etc. is after industry detail'; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;title2;&lt;/P&gt;&lt;P&gt;*BTW, do not get this problem when just tabulate the emplotment numbers. &lt;/P&gt;&lt;P&gt;One problem could be duplicated formattted values--for example,&amp;nbsp; CA25N.0400 and CA05N.0400 both format as '&amp;nbsp;&amp;nbsp;&amp;nbsp; Construction';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 22:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-order-internal-not-giving-expected-results/m-p/121185#M10435</guid>
      <dc:creator>AdrianGriffin</dc:creator>
      <dc:date>2013-04-25T22:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report--order=internal not giving expected results</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-order-internal-not-giving-expected-results/m-p/121186#M10436</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 difference is party due to the fact that the format is applied BEFORE the grouping is done. So order=internal is giving unpredictable/undesirable results, as described in this Tech Support note: &lt;A href="http://support.sas.com/kb/8/577.html" title="http://support.sas.com/kb/8/577.html"&gt;8577 - Formats for ORDER, GROUP or ACROSS variables are applied prior togrouping&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The fix is to use your #1 report and use NOPRINT on the DEFINE for SERIES, but then keep LABELon the report. Without LABEL on the second report there was no "unformatted" information for SERIES to be able to group the way you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 23:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-order-internal-not-giving-expected-results/m-p/121186#M10436</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-04-25T23:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report--order=internal not giving expected results</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-order-internal-not-giving-expected-results/m-p/121187#M10437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks of your quick reply. This all makes sense now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, this is a somewhat subtle point and would be a good thing to put in the proc report documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-order-internal-not-giving-expected-results/m-p/121187#M10437</guid>
      <dc:creator>AdrianGriffin</dc:creator>
      <dc:date>2013-04-26T16:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report--order=internal not giving expected results</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-order-internal-not-giving-expected-results/m-p/121188#M10438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even after 27 years there's always a chance to improve the PROC REPORT doc. Here's a web page for submitting documentation feedback: &lt;A href="http://support.sas.com/documentation/onlinedoc/feedback.html" title="http://support.sas.com/documentation/onlinedoc/feedback.html"&gt;Product Documentation Feedback&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 17:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-order-internal-not-giving-expected-results/m-p/121188#M10438</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2013-04-26T17:07:50Z</dc:date>
    </item>
  </channel>
</rss>

