<?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: ascending order error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ascending-order-error/m-p/696669#M212828</link>
    <description>&lt;P&gt;Sounds like you want BMI on the VAR statement.&amp;nbsp; Put SEX on the CLASS statement, instead of trying to use a BY statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data= bmi_smoke mean stddev;
  class sex;
  var BMI; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Nov 2020 20:12:33 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-11-04T20:12:33Z</dc:date>
    <item>
      <title>ascending order error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ascending-order-error/m-p/696654#M212819</link>
      <description>&lt;P&gt;I keep receiving the error:&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;Proc means data= bmi_smoke mean stddev;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;89 class BMI;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;90 by sex;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91 Run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Data set WORK.BMI_SMOKE is not sorted in ascending sequence. The current BY group has sex = 2 and the next BY group has sex&lt;/DIV&gt;&lt;DIV class="sasError"&gt;= 1.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;i'm just trying to figure out how to get the mean and standard deviation of the BMI by sex.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;any ideas?&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Nov 2020 19:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ascending-order-error/m-p/696654#M212819</guid>
      <dc:creator>lgooseberry</dc:creator>
      <dc:date>2020-11-04T19:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: ascending order error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ascending-order-error/m-p/696655#M212820</link>
      <description>&lt;P&gt;Precede your code by proc sort:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=bmi_smoke ;
 by sex bmi;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Nov 2020 19:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ascending-order-error/m-p/696655#M212820</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-11-04T19:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: ascending order error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ascending-order-error/m-p/696669#M212828</link>
      <description>&lt;P&gt;Sounds like you want BMI on the VAR statement.&amp;nbsp; Put SEX on the CLASS statement, instead of trying to use a BY statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data= bmi_smoke mean stddev;
  class sex;
  var BMI; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Nov 2020 20:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ascending-order-error/m-p/696669#M212828</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-11-04T20:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: ascending order error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ascending-order-error/m-p/696700#M212847</link>
      <description>&lt;P&gt;thanks Tom! that helped! do you know if i am able to find out the 95% confidence interval level in that code as well?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 21:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ascending-order-error/m-p/696700#M212847</guid>
      <dc:creator>lgooseberry</dc:creator>
      <dc:date>2020-11-04T21:56:18Z</dc:date>
    </item>
  </channel>
</rss>

