<?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 Means output variable order in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300875#M60569</link>
    <description>&lt;P&gt;perfect solution -I should have thought of this -guess I was trying to make it harder than it needed to be &amp;nbsp;-Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2016 21:22:21 GMT</pubDate>
    <dc:creator>TMiles</dc:creator>
    <dc:date>2016-09-26T21:22:21Z</dc:date>
    <item>
      <title>Proc Means output variable order</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300823#M60560</link>
      <description>&lt;P&gt;How can I control the output vaiable sort order when I don't have a Class statement. &amp;nbsp;I want them to be alphabetical.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tammy&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 17:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300823#M60560</guid>
      <dc:creator>TMiles</dc:creator>
      <dc:date>2016-09-26T17:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means output variable order</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300827#M60561</link>
      <description>&lt;P&gt;I think you'll need to provide a bit more detail. What "them" do you want in alphabetic order? The variables, the statististics, in rows or columns?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to provide an example data set and what you want for output for the given example.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 17:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300827#M60561</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-26T17:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means output variable order</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300835#M60563</link>
      <description>&lt;P&gt;The Variable list&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 18:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300835#M60563</guid>
      <dc:creator>TMiles</dc:creator>
      <dc:date>2016-09-26T18:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means output variable order</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300836#M60564</link>
      <description>&lt;P&gt;The var statement specifies the analysis variables and the order in which they are displayed in the results. You could put them in alphabetical order like the example below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC MEANS DATA=people;
  CLASS personID;
  VAR age height sex weight;
  OUTPUT OUT=people2 MEAN= ;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Sep 2016 19:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300836#M60564</guid>
      <dc:creator>JediApprentice</dc:creator>
      <dc:date>2016-09-26T19:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means output variable order</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300838#M60565</link>
      <description>&lt;P&gt;Yes, but I have 605 variables so I am using _numeric_ ... so the output is in the internal variable order. &amp;nbsp;I know I can do this with options on the class statement, but I don't have a class variable.&lt;/P&gt;&lt;PRE&gt;proc means data=out1.&amp;amp;promo._modelvars n mean median mode std min max skew kurt;
  var _numeric_;
run;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5058i8FDABF622DC7743B/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="means.JPG" title="means.JPG" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 19:08:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300838#M60565</guid>
      <dc:creator>TMiles</dc:creator>
      <dc:date>2016-09-26T19:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means output variable order</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300847#M60566</link>
      <description>&lt;P&gt;Send the data to an output dataset and sort by variable name or possibly label as makes more sense.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 19:42:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300847#M60566</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-26T19:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means output variable order</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300865#M60567</link>
      <description>&lt;P&gt;You can make your own list of names in the alphabetical order and put them in a macro variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
   set sashelp.class;
   retain a10 a1 a3 a011 1;
   run;
proc contents data=class(keep=_numeric_) noprint out=names(keep=name);
   run;
proc sql noprint;
   select nliteral(name) into :alphanames separated by ' '
      from names;
   quit;
   run;
%put NOTE: &amp;amp;=alphanames;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You may want to added ORDER=IGNORECASE&amp;nbsp;to PROC CONTENTS to change the order as follows.&amp;nbsp; PROC CONTENTS "automatically" handles the numeric suffice properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;36         %put NOTE: &amp;amp;=alphanames;
NOTE: ALPHANAMES=a1 a3 a10 a011 Age Height Weight&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 20:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300865#M60567</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-09-26T20:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means output variable order</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300875#M60569</link>
      <description>&lt;P&gt;perfect solution -I should have thought of this -guess I was trying to make it harder than it needed to be &amp;nbsp;-Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 21:22:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Means-output-variable-order/m-p/300875#M60569</guid>
      <dc:creator>TMiles</dc:creator>
      <dc:date>2016-09-26T21:22:21Z</dc:date>
    </item>
  </channel>
</rss>

