<?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: How to reorder variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162843#M42279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; retain&amp;nbsp; a b c x y z;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Aug 2014 14:21:37 GMT</pubDate>
    <dc:creator>stat_sas</dc:creator>
    <dc:date>2014-08-15T14:21:37Z</dc:date>
    <item>
      <title>How to reorder variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162842#M42278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a very easy way to custom order variables within a data set.&amp;nbsp; For example, I have a dataset with variables currently in order x a b y z c&lt;/P&gt;&lt;P&gt;And I would like to reorder them a b c x y z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at a few methods (e.g., order=) but they all seem like circuitous methods. What is the easiest way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 14:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162842#M42278</guid>
      <dc:creator>ct_surg</dc:creator>
      <dc:date>2014-08-15T14:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to reorder variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162843#M42279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; retain&amp;nbsp; a b c x y z;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 14:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162843#M42279</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-08-15T14:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to reorder variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162844#M42280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 14:26:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162844#M42280</guid>
      <dc:creator>ct_surg</dc:creator>
      <dc:date>2014-08-15T14:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to reorder variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162845#M42281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp; select a,b,c,x,y,z&amp;nbsp; from have;&lt;/P&gt;&lt;P&gt;quit;&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>Sat, 16 Aug 2014 12:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162845#M42281</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-08-16T12:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to reorder variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162846#M42282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within a single variable, is there a way to custom order the outputs in proc freq?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var1 = c a b&lt;/P&gt;&lt;P&gt;var2 = 1 2 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables var1*var2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;display such that table outputs as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1 2 3&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 22:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162846#M42282</guid>
      <dc:creator>ct_surg</dc:creator>
      <dc:date>2014-09-08T22:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to reorder variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162847#M42283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand it correctly you are looking for a cross tab like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input var1 $ var2;&lt;BR /&gt;datalines;&lt;BR /&gt;a 1&lt;BR /&gt;b 2&lt;BR /&gt;c 3&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=have;&lt;BR /&gt;table var1*var2/nocol norow nopercent ;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 13:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162847#M42283</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-09-09T13:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to reorder variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162848#M42284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to reorder variables within var1.&amp;nbsp; For example, var1 currently displays as&lt;/P&gt;&lt;P&gt;a&amp;nbsp; c&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp; d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like it to display as&lt;/P&gt;&lt;P&gt;a&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp; c&amp;nbsp;&amp;nbsp; d&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2014 18:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162848#M42284</guid>
      <dc:creator>ct_surg</dc:creator>
      <dc:date>2014-09-14T18:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to reorder variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162849#M42285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More precisely, and just focusing on var 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables var1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently:&lt;/P&gt;&lt;P&gt;a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;desired:&lt;/P&gt;&lt;P&gt;a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2014 19:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-reorder-variables/m-p/162849#M42285</guid>
      <dc:creator>ct_surg</dc:creator>
      <dc:date>2014-09-14T19:01:40Z</dc:date>
    </item>
  </channel>
</rss>

