<?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 Error message on SAS studio log in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Error-message-on-SAS-studio-log/m-p/898163#M39960</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently started using SAS studio for my economic data analysis course, and I've been trying to sort the variables by descending mean. My code is shown in the pictures below, however the log is giving the message also shown in the picture below. Please let me know what is wrong with my code, and how I can fix it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Questionforquestionb.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88783iC690F82A2869FDBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Questionforquestionb.PNG" alt="Questionforquestionb.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Questionforquestionb2.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88784iAAA31F9B54B8179D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Questionforquestionb2.PNG" alt="Questionforquestionb2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Questionforquestionb3.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88785iB922001DFA35F0B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Questionforquestionb3.PNG" alt="Questionforquestionb3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 15:39:37 GMT</pubDate>
    <dc:creator>SIMMII</dc:creator>
    <dc:date>2023-10-11T15:39:37Z</dc:date>
    <item>
      <title>Error message on SAS studio log</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-message-on-SAS-studio-log/m-p/898163#M39960</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently started using SAS studio for my economic data analysis course, and I've been trying to sort the variables by descending mean. My code is shown in the pictures below, however the log is giving the message also shown in the picture below. Please let me know what is wrong with my code, and how I can fix it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Questionforquestionb.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88783iC690F82A2869FDBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Questionforquestionb.PNG" alt="Questionforquestionb.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Questionforquestionb2.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88784iAAA31F9B54B8179D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Questionforquestionb2.PNG" alt="Questionforquestionb2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Questionforquestionb3.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88785iB922001DFA35F0B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Questionforquestionb3.PNG" alt="Questionforquestionb3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 15:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-message-on-SAS-studio-log/m-p/898163#M39960</guid>
      <dc:creator>SIMMII</dc:creator>
      <dc:date>2023-10-11T15:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error message on SAS studio log</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-message-on-SAS-studio-log/m-p/898169#M39965</link>
      <description>&lt;P&gt;If you just want the MEAN statistic then either subset the current summary dataset you have generated.&amp;nbsp; You could add a WHERE statement to your PROC TRANSPOSE step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where _stat_='MEAN';
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you could just generate only the MEAN statistic into the summary dataset by changing the OUTPUT statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means .... ;
  var x1-x34 ;
  output out=mean_summary mean=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That will make a dataset with only one observation with variables names X1-X34 that contain the MEAN value of the respective original variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try it yourself:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=sashelp.class;
  var age height weight;
  output out=stat1;
  output out=stat2 mean=;
run;

proc print data=stat1; run;
proc print data=stat2; run;

proc transpose data=stat1 out=tran1;
  var age height weight;
  where _stat_='MEAN';
run;

proc transpose data=stat2 out=tran2;
  var age height weight;
run;

proc print data=tran1;
run;
proc print data=tran2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;TRAN1 and TRAN2 have the same results.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 04:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-message-on-SAS-studio-log/m-p/898169#M39965</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-10-12T04:10:18Z</dc:date>
    </item>
  </channel>
</rss>

