<?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: Reordering the output in a summary in SAS EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reordering-the-output-in-a-summary-in-SAS-EG/m-p/269744#M18692</link>
    <description>&lt;P&gt;I heeded the warning about monotonic!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried going into the code and changing the order statements in the PROC Tabulate.&lt;/P&gt;
&lt;P&gt;But what ultimately worked was simply padding the category that I wanted first with 3 blanks, next category 2 blanks, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Worked!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2016 14:31:54 GMT</pubDate>
    <dc:creator>JSJ</dc:creator>
    <dc:date>2016-05-11T14:31:54Z</dc:date>
    <item>
      <title>Reordering the output in a summary in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reordering-the-output-in-a-summary-in-SAS-EG/m-p/269716#M18683</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to put my output from my summary table in a specific order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created the summary and then output the results to a work file, so I can reorder it. Now it is ordering in alpabetical order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way I thought of is to create a calculated value based on the row, and then another calculated value with a case to assign my row number to sort--&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone have a function for row?&amp;nbsp; Monotonic() returns odd results when I try to add to it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the example attached, I would like Category 3 to be moved to the bottom of the report after Category 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&amp;nbsp; Thanks in advance.&lt;/P&gt;
&lt;P&gt;Jo&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 13:21:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reordering-the-output-in-a-summary-in-SAS-EG/m-p/269716#M18683</guid>
      <dc:creator>JSJ</dc:creator>
      <dc:date>2016-05-11T13:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reordering the output in a summary in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reordering-the-output-in-a-summary-in-SAS-EG/m-p/269724#M18686</link>
      <description>I did get my lines reordered by using monotonic() in one query to assign row number, and then a case statement t assign my summary row number in a subsequent query... Now to get it to output!</description>
      <pubDate>Wed, 11 May 2016 13:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reordering-the-output-in-a-summary-in-SAS-EG/m-p/269724#M18686</guid>
      <dc:creator>JSJ</dc:creator>
      <dc:date>2016-05-11T13:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reordering the output in a summary in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reordering-the-output-in-a-summary-in-SAS-EG/m-p/269738#M18691</link>
      <description>&lt;P&gt;Be careful about using monotonic, or trying to do this in SQL. SQL is an inherently set-oriented language, and doesn't do "do this line before this line" types of operations well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case, it looks to me like you could assign numeric values for your categories in whatever order you want, and then use formats to create the nicely labelled output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 14:14:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reordering-the-output-in-a-summary-in-SAS-EG/m-p/269738#M18691</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2016-05-11T14:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reordering the output in a summary in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reordering-the-output-in-a-summary-in-SAS-EG/m-p/269744#M18692</link>
      <description>&lt;P&gt;I heeded the warning about monotonic!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried going into the code and changing the order statements in the PROC Tabulate.&lt;/P&gt;
&lt;P&gt;But what ultimately worked was simply padding the category that I wanted first with 3 blanks, next category 2 blanks, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Worked!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 14:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reordering-the-output-in-a-summary-in-SAS-EG/m-p/269744#M18692</guid>
      <dc:creator>JSJ</dc:creator>
      <dc:date>2016-05-11T14:31:54Z</dc:date>
    </item>
  </channel>
</rss>

