<?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: Need assistance in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Need-assistance/m-p/558770#M10157</link>
    <description>&lt;P&gt;Thank you so much!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2019 20:53:38 GMT</pubDate>
    <dc:creator>lisa2002</dc:creator>
    <dc:date>2019-05-14T20:53:38Z</dc:date>
    <item>
      <title>Need assistance</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-assistance/m-p/558749#M10149</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large dataset that I'm working on and I'm trying to figure out how to exclude all ages and only count the ages of men that are 75 years old.&amp;nbsp; Still learning, if someone could assist that would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*how many men are 75 years old*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Age BMI&lt;/P&gt;&lt;P&gt;74&amp;nbsp; &amp;nbsp; &amp;nbsp;30.6&lt;/P&gt;&lt;P&gt;74&amp;nbsp; &amp;nbsp; &amp;nbsp;25.9&lt;/P&gt;&lt;P&gt;74&amp;nbsp; &amp;nbsp; &amp;nbsp;31.2&lt;/P&gt;&lt;P&gt;75&amp;nbsp; &amp;nbsp; &amp;nbsp;28.1&lt;/P&gt;&lt;P&gt;75&amp;nbsp; &amp;nbsp; &amp;nbsp;32.9&lt;/P&gt;&lt;P&gt;75&amp;nbsp; &amp;nbsp; &amp;nbsp;32&lt;/P&gt;&lt;P&gt;75&amp;nbsp; &amp;nbsp; &amp;nbsp;23.7&lt;/P&gt;&lt;P&gt;75&amp;nbsp; &amp;nbsp; &amp;nbsp;25&lt;/P&gt;&lt;P&gt;80&amp;nbsp; &amp;nbsp; &amp;nbsp;22.4&lt;/P&gt;&lt;P&gt;80&amp;nbsp; &amp;nbsp; 28.4&lt;/P&gt;&lt;P&gt;80&amp;nbsp; &amp;nbsp; &amp;nbsp;27.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code...clearly I don't want to sum up the ages so this is not working.&amp;nbsp; I need a count of all the men that are 75yrs. and not sure how to receive only those numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table Men75yrs as&lt;BR /&gt;select *, sum(Age) as yrs75total&lt;BR /&gt;from sashelp.bmimen&lt;BR /&gt;Quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 19:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-assistance/m-p/558749#M10149</guid>
      <dc:creator>lisa2002</dc:creator>
      <dc:date>2019-05-14T19:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-assistance/m-p/558752#M10150</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Age BMI;
cards;
74     30.6
74     25.9
74     31.2
75     28.1
75     32.9
75     32
75     23.7
75     25
80     22.4
80    28.4
80     27.2
;

proc sql;
create table want as
select age, count(age) as count
from have
where age=75
group by age;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2019 20:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-assistance/m-p/558752#M10150</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-05-14T20:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-assistance/m-p/558754#M10151</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=have;
    table age;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=have(where=(age=75));
    table age;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC FREQ is a fundamental tool that all SAS users should be familiar with.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 20:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-assistance/m-p/558754#M10151</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-14T20:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-assistance/m-p/558770#M10157</link>
      <description>&lt;P&gt;Thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 20:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-assistance/m-p/558770#M10157</guid>
      <dc:creator>lisa2002</dc:creator>
      <dc:date>2019-05-14T20:53:38Z</dc:date>
    </item>
  </channel>
</rss>

