<?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 transpose and ascending display of date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/transpose-and-ascending-display-of-date/m-p/8957#M413</link>
    <description>I use the following code:&lt;BR /&gt;
proc transpose data=adhoc2 out=Out1;&lt;BR /&gt;
    by boutique_src_cd ph_name BN_NAME ;&lt;BR /&gt;
    id date;&lt;BR /&gt;
    var total;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
in the output the date is displayed in alphabetical order of the month i.e Apr_09,&lt;BR /&gt;
Apr_10 ,Aug_09,Dec_09.&lt;BR /&gt;
How to display the dates in asceding order instead?Mar_09 to Aug_10?</description>
    <pubDate>Wed, 29 Sep 2010 17:28:56 GMT</pubDate>
    <dc:creator>SASPhile</dc:creator>
    <dc:date>2010-09-29T17:28:56Z</dc:date>
    <item>
      <title>transpose and ascending display of date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/transpose-and-ascending-display-of-date/m-p/8957#M413</link>
      <description>I use the following code:&lt;BR /&gt;
proc transpose data=adhoc2 out=Out1;&lt;BR /&gt;
    by boutique_src_cd ph_name BN_NAME ;&lt;BR /&gt;
    id date;&lt;BR /&gt;
    var total;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
in the output the date is displayed in alphabetical order of the month i.e Apr_09,&lt;BR /&gt;
Apr_10 ,Aug_09,Dec_09.&lt;BR /&gt;
How to display the dates in asceding order instead?Mar_09 to Aug_10?</description>
      <pubDate>Wed, 29 Sep 2010 17:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/transpose-and-ascending-display-of-date/m-p/8957#M413</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2010-09-29T17:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: transpose and ascending display of date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/transpose-and-ascending-display-of-date/m-p/8958#M414</link>
      <description>You will need to pre-sort your data using a SAS numeric-type DATE variable, even if you choose to transpose a character-formatted variable "date".  As SAS encounters the input data, that event cause the transposed ID variables to get added to the PDV, so by pre-sorting your file, that takes care of column order in the output file.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
proc transpose id varibale order site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
..and from the search results...&lt;BR /&gt;
Sample 25104: Maintain the order of ID variables in the output data set created by PROC TRANSPOSE&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/25/104.html" target="_blank"&gt;http://support.sas.com/kb/25/104.html&lt;/A&gt;</description>
      <pubDate>Wed, 29 Sep 2010 18:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/transpose-and-ascending-display-of-date/m-p/8958#M414</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-09-29T18:10:32Z</dc:date>
    </item>
  </channel>
</rss>

