<?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: how to use group clause with new variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-group-clause-with-new-variable/m-p/515776#M139233</link>
    <description>&lt;P&gt;Provide example data in a data step with datalines.&lt;/P&gt;</description>
    <pubDate>Sun, 25 Nov 2018 07:23:06 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-11-25T07:23:06Z</dc:date>
    <item>
      <title>how to use group clause with new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-group-clause-with-new-variable/m-p/515765#M139228</link>
      <description>&lt;P&gt;proc sql ;&lt;/P&gt;&lt;P&gt;select sex,case when sex='F' then age+5 else age+10 end as new_age from sashelp.class group by new_age;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to calculate new_age sum group wise with in a program&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 05:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-group-clause-with-new-variable/m-p/515765#M139228</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-11-25T05:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to use group clause with new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-group-clause-with-new-variable/m-p/515766#M139229</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;how to calculate new_age sum group wise with in a program&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum of what within new_age&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&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;
&lt;P&gt;proc sql ;&lt;/P&gt;
&lt;P&gt;select sex,case when sex='F' then age+5 else age+10 end as new_age from sashelp.class group by new_age;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to calculate new_age sum group wise with in a program&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 05:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-group-clause-with-new-variable/m-p/515766#M139229</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-25T05:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to use group clause with new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-group-clause-with-new-variable/m-p/515767#M139230</link>
      <description>&lt;P&gt;Your &lt;EM&gt;aggregated&lt;/EM&gt; and &lt;EM&gt;aggregating&lt;/EM&gt; variable is the same? Anyway... :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select 
    sex,
    case when sex='F' then age+5 else age+10 end as new_age,
    sum(calculated new_age) as sumAge 
from sashelp.class 
group by sex, calculated new_age;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Nov 2018 05:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-group-clause-with-new-variable/m-p/515767#M139230</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-11-25T05:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to use group clause with new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-group-clause-with-new-variable/m-p/515768#M139231</link>
      <description>new_age group wise sum</description>
      <pubDate>Sun, 25 Nov 2018 05:25:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-group-clause-with-new-variable/m-p/515768#M139231</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-11-25T05:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to use group clause with new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-group-clause-with-new-variable/m-p/515776#M139233</link>
      <description>&lt;P&gt;Provide example data in a data step with datalines.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 07:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-group-clause-with-new-variable/m-p/515776#M139233</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-25T07:23:06Z</dc:date>
    </item>
  </channel>
</rss>

