<?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 calculate sum for new variable in proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/calculate-sum-for-new-variable-in-proc-report/m-p/486920#M126772</link>
    <description>&lt;P&gt;ods rtf file='D:\sss\ss.rtf' ;&lt;BR /&gt;proc report data=sashelp.class nowd ;&lt;BR /&gt;column name age sex height weight new_height;&lt;BR /&gt;define sex/group ;&lt;BR /&gt;define height/order ;&lt;BR /&gt;define new_height/computed ;&lt;BR /&gt;compute new_height;&lt;BR /&gt;new_height=height*2 ;&lt;BR /&gt;endcomp ;&lt;BR /&gt;rbreak after /summarize dol dul ;&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i run above program it gives sum results like age,weight but how to calculate value of new_height variable&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2018 08:42:50 GMT</pubDate>
    <dc:creator>thanikondharish</dc:creator>
    <dc:date>2018-08-15T08:42:50Z</dc:date>
    <item>
      <title>calculate sum for new variable in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-sum-for-new-variable-in-proc-report/m-p/486920#M126772</link>
      <description>&lt;P&gt;ods rtf file='D:\sss\ss.rtf' ;&lt;BR /&gt;proc report data=sashelp.class nowd ;&lt;BR /&gt;column name age sex height weight new_height;&lt;BR /&gt;define sex/group ;&lt;BR /&gt;define height/order ;&lt;BR /&gt;define new_height/computed ;&lt;BR /&gt;compute new_height;&lt;BR /&gt;new_height=height*2 ;&lt;BR /&gt;endcomp ;&lt;BR /&gt;rbreak after /summarize dol dul ;&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i run above program it gives sum results like age,weight but how to calculate value of new_height variable&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 08:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-sum-for-new-variable-in-proc-report/m-p/486920#M126772</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-08-15T08:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sum for new variable in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-sum-for-new-variable-in-proc-report/m-p/486921#M126773</link>
      <description>&lt;P&gt;I am not 100% sure, but i think that you have to do it manually. The paper &lt;CITE class="iUh30"&gt;&lt;A href="https://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf" target="_blank"&gt;https://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf&lt;/A&gt;&lt;/CITE&gt; seems to contain some useful hints.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 08:55:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-sum-for-new-variable-in-proc-report/m-p/486921#M126773</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-08-15T08:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sum for new variable in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-sum-for-new-variable-in-proc-report/m-p/486922#M126774</link>
      <description>i got result&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Aug 2018 08:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-sum-for-new-variable-in-proc-report/m-p/486922#M126774</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-08-15T08:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sum for new variable in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-sum-for-new-variable-in-proc-report/m-p/487020#M126821</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;i got result&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The show the code that gets the desired result.&lt;/P&gt;
&lt;P&gt;People end up on this forum from searches looking for help. Showing the correct solution and marking it as such lets one of those people actually find a solution.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 15:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-sum-for-new-variable-in-proc-report/m-p/487020#M126821</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-15T15:05:14Z</dc:date>
    </item>
  </channel>
</rss>

