<?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 report-calculated column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-calculated-column/m-p/500641#M133356</link>
    <description>&lt;P&gt;q1) it is because you use the mean here:&lt;/P&gt;
&lt;PRE&gt;height.mean/weight.mean;&lt;/PRE&gt;
&lt;P&gt;q2) because mean is not calculated.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Oct 2018 07:54:21 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-10-02T07:54:21Z</dc:date>
    <item>
      <title>Proc report-calculated column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-calculated-column/m-p/500626#M133351</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Please see examples of proc report with "computed" column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some questions related to example1 /example2 please:&lt;/P&gt;
&lt;P&gt;Why do we use "analysis mean"? It is not calculating mean here.It just show the values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have some questions related to example3 please:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Why the total row is not calculated here?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Example1*/
proc report  data=sashelp.class   NOWD;
Columns name sex age height weight ratio;
DEFINE name / display "Name" width=10;
DEFINE sex / display "Gender" width=6; 
DEFINE age / display "Age" width=4;  
DEFINE height / analysis mean  "Height" format=8.1;  
DEFINE weight / analysis mean "Weight" format=8.1;  
Define ratio /computed format=6.2;

compute ratio;
ratio=height.mean/weight.mean;
endcomp;
rbreak after/summarize;
run;

 
/*Example2*/
proc report  data=sashelp.class   NOWD;
Columns name sex age height weight ratio;
DEFINE name / display "Name" width=10;
DEFINE sex / display "Gender" width=6; 
DEFINE age / display "Age" width=4;  
DEFINE height / analysis mean  "Height" format=8.1;  
DEFINE weight / analysis mean "Weight" format=8.1;  
Define ratio /computed format=6.2;

compute ratio;
ratio=_C4_/_C5_;
endcomp;
rbreak after/summarize;
run;



/*Example3*/
proc report  data=sashelp.class   NOWD;
Columns name sex age height weight ratio;
DEFINE name / display "Name" width=10;
DEFINE sex / display "Gender" width=6; 
DEFINE age / display "Age" width=4;  
DEFINE height / display  "Height" format=8.1;  
DEFINE weight / display "Weight" format=8.1;  
Define ratio /computed format=6.2;

compute ratio;
ratio=_C4_/_C5_;
endcomp;

rbreak after/summarize;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Oct 2018 05:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-calculated-column/m-p/500626#M133351</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-10-02T05:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report-calculated column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-calculated-column/m-p/500641#M133356</link>
      <description>&lt;P&gt;q1) it is because you use the mean here:&lt;/P&gt;
&lt;PRE&gt;height.mean/weight.mean;&lt;/PRE&gt;
&lt;P&gt;q2) because mean is not calculated.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 07:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-calculated-column/m-p/500641#M133356</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-02T07:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report-calculated column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-calculated-column/m-p/500680#M133366</link>
      <description>&lt;P&gt;You are using "&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token keyword"&gt;rbreak&lt;/SPAN&gt; after&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;summarize&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 10:54:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-calculated-column/m-p/500680#M133366</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-02T10:54:52Z</dc:date>
    </item>
  </channel>
</rss>

