<?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: Count for a Catagory in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180673#M13801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, don't forget the ability of PROC MEANS (Summary Statistics task) to group output by CLASS variables.&amp;nbsp; This can be more efficient than BY groups (doesn't require sorted data) and it's a little more intuitive than accomplishing the same thing in the Query Builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what it looks like with sample CLASS data in the task, using "Sex" as a classification:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="summ_class.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/8249_summ_class.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here's the output:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="summ_class_output.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/8250_summ_class_output.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several conference papers about this approach -- &lt;A href="http://www.lexjansen.com/wuss/2007/CodersCorner/COD_Elkin_WritingALean.pdf"&gt;here's a link to one of them&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 16:15:03 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2014-12-05T16:15:03Z</dc:date>
    <item>
      <title>Count for a Category</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180668#M13796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will be an easy question to solve. I'm using SAS EG 6.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have IDs for students and I have all the classes these students attend, what I want is &lt;STRONG&gt;how many students attend each class&lt;/STRONG&gt;. I need the data to join with another table that has the same information just a few days older, so I can't just use count and get the answer through summary tables (plus I have other numerical data that I also need the same trick for). I feel like I am over-looking a simple solution, so please feel free to say something you think should be obvious. My boss uses regular SAS while I've trained on EG, sometimes we have a hard time communicating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is a table something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="49" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid #000000; width: 1054px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Class&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;New Number of Students in class&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Old Number of Students in class&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;New data&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Old data&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;New data&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Old data&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;English 101&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;14&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;17&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;#&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;#&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;H3&gt;&lt;SPAN style="font-size: 10pt;"&gt;#&lt;/SPAN&gt;&lt;/H3&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;#&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 00:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180668#M13796</guid>
      <dc:creator>__Renee__</dc:creator>
      <dc:date>2014-11-21T00:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count for a Catagory</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180669#M13797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use the Query tool, but you haven't provided enough information about your data to provide help beyond that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll join the two tables based on some criteria, again can't say without the data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 01:27:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180669#M13797</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-11-21T01:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count for a Catagory</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180670#M13798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, so there are a few hundred classes and thousands of students. We compare yesterdays data, to data from the day before&amp;nbsp; (eg 20Nov2014 to 19Nov2014) to see how the classes are doing, what has changed, etc. So I need to count how many students are in each class along with a few other college stats like FTE. I'm rewriting an old program, taking it on as my own, and recreating it through enterprise guide. Looking at the SAS program doesn't help me very much because this old program uses functions I don't know how to use. I'm new to SAS programing and am better at EG. Here is a sample of what I am trying to recreate through EG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;PROC MEANS&lt;/SPAN&gt; &lt;STRONG&gt;NOPRINT SUM N MEAN MAXDEC&lt;/STRONG&gt;=2;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VAR&lt;/STRONG&gt; CREDIT FTES; &lt;STRONG&gt;BY&lt;/STRONG&gt; course;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUTPUT OUT&lt;/STRONG&gt;= YEAR2SUM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM&lt;/STRONG&gt; = OLDCRHR OLDFTE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;N&lt;/STRONG&gt; = OLDCRED OLDSEAT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MEAN&lt;/STRONG&gt; = OLD_CREDIT OLDMSEAT; &lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I'll need to use the query builder and use a full join to combine the needed data fully. I just need to know how to sum up categories, all the students in a particular class - on down the list of classes, along with all the FTE (full-time equivalent - basically a number that measures student credit hours) for that Class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data I'm using has student IDs, Classes, departments, divisions, FTE, credits, academic period. I cannot show the actual data because it is confidential.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is more clear. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 17:19:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180670#M13798</guid>
      <dc:creator>__Renee__</dc:creator>
      <dc:date>2014-11-21T17:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count for a Catagory</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180671#M13799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's why you generate sample data that's fake but illustrates your issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything in Proc Means should be reproducible via a Summary Task, you'll need to determine where to place each variable though.&amp;nbsp; For example credits/ftes goes under analysis, course under group by, under stats requested you can select the stats you need. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 19:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180671#M13799</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-11-21T19:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count for a Catagory</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180672#M13800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Reeza for your help in this. I think I've figured out what I was trying to ask. My problem was a mixture of trying to do too much at once and forgetting how powerful the 'group by' section is in the query builder. Without properly using the group by function I was getting crazy numbers. Next time I have a question I'll be sure to create some sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Renee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 21:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180672#M13800</guid>
      <dc:creator>__Renee__</dc:creator>
      <dc:date>2014-11-24T21:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count for a Catagory</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180673#M13801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, don't forget the ability of PROC MEANS (Summary Statistics task) to group output by CLASS variables.&amp;nbsp; This can be more efficient than BY groups (doesn't require sorted data) and it's a little more intuitive than accomplishing the same thing in the Query Builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what it looks like with sample CLASS data in the task, using "Sex" as a classification:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="summ_class.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/8249_summ_class.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here's the output:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="summ_class_output.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/8250_summ_class_output.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several conference papers about this approach -- &lt;A href="http://www.lexjansen.com/wuss/2007/CodersCorner/COD_Elkin_WritingALean.pdf"&gt;here's a link to one of them&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 16:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180673#M13801</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-12-05T16:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count for a Catagory</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180674#M13802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll keep class in mind too! In fact I'll test it out on my reports today and see if that works better anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Renee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 17:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-for-a-Category/m-p/180674#M13802</guid>
      <dc:creator>__Renee__</dc:creator>
      <dc:date>2014-12-05T17:25:14Z</dc:date>
    </item>
  </channel>
</rss>

