<?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: Month Order in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159493#M12422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Does something like this work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;*Instead use the raw variable and format it here:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;/*Proc report section*/&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;define &lt;STRONG&gt;UW_MTH&lt;/STRONG&gt; / descending across ' - Month -' &lt;STRONG&gt;format=monyy5.&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2015 17:01:03 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-02-10T17:01:03Z</dc:date>
    <item>
      <title>Month Order</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159489#M12418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm generating a report using proc report to output data split by month. The issue that I'm currently having is sorting the months across in order. There are 2 attachments, one to represent the code and the other which conveys the output. For the output, my initial assumption is that this has something to do with the first row where there are no values. I have tried to remedy this but unfortunately to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would really appreciate any help on the matter if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11937i72F6C78A6D0CCBED/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Max Bonus Output.JPG" title="Max Bonus Output.JPG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11938iF049E7FA6BAF897C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Month Order.JPG" title="Month Order.JPG" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159489#M12418</guid>
      <dc:creator>ToonKnight</dc:creator>
      <dc:date>2015-02-09T16:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Month Order</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159490#M12419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't create Month as a text variable. Use the date value and format it in the report. Otherwise SAS will at best order it alphabetically. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 17:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159490#M12419</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-09T17:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Month Order</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159491#M12420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better don't use character Date .&amp;nbsp; and you padding blanks before them to get the order you want by proc format or override its value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value $x&lt;/P&gt;&lt;P&gt; 'DEC2014'='&amp;nbsp;&amp;nbsp;&amp;nbsp; DEC2014' ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then add this format at proc report .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 11:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159491#M12420</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-02-10T11:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Month Order</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159492#M12421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've managed to get my final output in the right order, but cannot format the 'date1' variable to get in the form mmmyy(i.e. DEC14 etc...). For instance, I've added the lines of code below which has managed to sort them in order but not in 'mmmyy' form. I've tried to format this in the proc report using 'Format = mmmyy5.' in the define statement however this returns an error 'variable date1 must use character variable'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Data Build*/&lt;/P&gt;&lt;P&gt;date1 = put(UW_MTH, Julian5.);&lt;/P&gt;&lt;P&gt;put date1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Proc report section*/&lt;/P&gt;&lt;P&gt;define Date1 / descending across ' - Month -' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 16:09:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159492#M12421</guid>
      <dc:creator>ToonKnight</dc:creator>
      <dc:date>2015-02-10T16:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Month Order</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159493#M12422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Does something like this work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;*Instead use the raw variable and format it here:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;/*Proc report section*/&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;define &lt;STRONG&gt;UW_MTH&lt;/STRONG&gt; / descending across ' - Month -' &lt;STRONG&gt;format=monyy5.&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 17:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159493#M12422</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-10T17:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Month Order</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159494#M12423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry the question remains unanswered, not sure what happened, so please ignore the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using the raw variable in the proc report section it just outputs the same issue&amp;nbsp; as previous where the months are not in order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The date1 variable is a character variable (with the month values now in numerical from). Would I need to convert character type to date type to eliminate the Sas error as stated above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 17:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159494#M12423</guid>
      <dc:creator>ToonKnight</dc:creator>
      <dc:date>2015-02-10T17:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Month Order</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159495#M12424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post this in ODS Reporting and perhaps &lt;A __default_attr="63295" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; can help.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 17:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159495#M12424</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-10T17:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Month Order</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159496#M12425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works on this absolutely useless report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=sashelp.stocks;&lt;/P&gt;&lt;P&gt;columns stock date;&lt;/P&gt;&lt;P&gt;define stock/group;&lt;/P&gt;&lt;P&gt;define date/across descending format=year4.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure to post your full code and sample data, perhaps something else is the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 17:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159496#M12425</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-10T17:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Month Order</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159497#M12426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've posted this original discussion in a new thread named '&lt;A _jive_internal="true" href="https://communities.sas.com/message/253006#253006"&gt;Proc Report Month Order&lt;/A&gt;' under ODS and Base Reporting, with additional material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could have a look then it would be greatly appreciated,&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 10:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Month-Order/m-p/159497#M12426</guid>
      <dc:creator>ToonKnight</dc:creator>
      <dc:date>2015-02-11T10:17:20Z</dc:date>
    </item>
  </channel>
</rss>

