<?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 USE OF ANALYSIS OPTION in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/USE-OF-ANALYSIS-OPTION/m-p/484141#M125652</link>
    <description>&lt;P&gt;proc report data=sashelp.class nowd;&lt;BR /&gt;columns name sex age height weight ;&lt;BR /&gt;define age/display ANALYSIS;&lt;BR /&gt;define height/display;&lt;BR /&gt;rbreak after/ summarize;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHAT IS THE USE OF ANALYSIS IN ABOVE DATA PROGRAM&lt;/P&gt;</description>
    <pubDate>Sun, 05 Aug 2018 11:39:34 GMT</pubDate>
    <dc:creator>thanikondharish</dc:creator>
    <dc:date>2018-08-05T11:39:34Z</dc:date>
    <item>
      <title>USE OF ANALYSIS OPTION</title>
      <link>https://communities.sas.com/t5/SAS-Programming/USE-OF-ANALYSIS-OPTION/m-p/484141#M125652</link>
      <description>&lt;P&gt;proc report data=sashelp.class nowd;&lt;BR /&gt;columns name sex age height weight ;&lt;BR /&gt;define age/display ANALYSIS;&lt;BR /&gt;define height/display;&lt;BR /&gt;rbreak after/ summarize;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHAT IS THE USE OF ANALYSIS IN ABOVE DATA PROGRAM&lt;/P&gt;</description>
      <pubDate>Sun, 05 Aug 2018 11:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/USE-OF-ANALYSIS-OPTION/m-p/484141#M125652</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-08-05T11:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: USE OF ANALYSIS OPTION</title>
      <link>https://communities.sas.com/t5/SAS-Programming/USE-OF-ANALYSIS-OPTION/m-p/484142#M125653</link>
      <description>&lt;P&gt;See my answer to your related thread &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/how-to-find-sum-particular-one-variable/m-p/484130#M125645" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Aug 2018 11:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/USE-OF-ANALYSIS-OPTION/m-p/484142#M125653</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-08-05T11:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: USE OF ANALYSIS OPTION</title>
      <link>https://communities.sas.com/t5/SAS-Programming/USE-OF-ANALYSIS-OPTION/m-p/484168#M125663</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt; recommending, reading the PROC REPORT documentation will help you here. You only need 1 usage usually, with a variable in a PROC REPORT DEFINE statement. So if you want age to be summarized on the RBREAK, then you need the usage of ANALYSIS (and you will get the default analysis statistic of SUM). However, if you want AGE not to be included in any grand total summary line, then a usage of DISPLAY is appropriate.&lt;BR /&gt;&lt;BR /&gt; Now, getting a summary of all the ages or all the heights doesn't make sense, and in your code, if you run it, you'll see that AGE and WEIGHT are summarized at the RBREAK, but HEIGHT (because it is a usage of DISPLAY) is NOT summarized.&lt;BR /&gt;&lt;BR /&gt; Asking for the MEAN or MIN or MAX on the summary line would be more likely on a report that showed every detail row. You can achieve this by changing the statistic on the DEFINE statement. Oh, wait, you don't have a statistics, so you are getting the DEFAULT of SUM for AGE and WEIGHT.&lt;BR /&gt;&lt;BR /&gt; See what happens if you do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.class nowd;
columns name sex age height weight ;
define age/min ANALYSIS;
define height/display;
define weight / analysis min;
rbreak after/ summarize;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sun, 05 Aug 2018 15:37:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/USE-OF-ANALYSIS-OPTION/m-p/484168#M125663</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-05T15:37:59Z</dc:date>
    </item>
  </channel>
</rss>

