<?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: proc freq doesn't work? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-doesn-t-work/m-p/19199#M3857</link>
    <description>data crackman;&lt;BR /&gt;
input department $ year teacher$;&lt;BR /&gt;
datalines;&lt;BR /&gt;
econ 2002 Samon&lt;BR /&gt;
econ 2003 Samon&lt;BR /&gt;
manag 2003 Stephen&lt;BR /&gt;
manag 2003 Sissi&lt;BR /&gt;
Chem 2002 Sissi&lt;BR /&gt;
Chem 2003 Samon&lt;BR /&gt;
Math 2003 Stephen&lt;BR /&gt;
Math 2004 Laura&lt;BR /&gt;
Eng 2002 Laura&lt;BR /&gt;
Eng 2003 Stephen&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table crackman as select *,count(*) as count label="frequency" from crackman group by teacher,year;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
this program is what you want?&lt;BR /&gt;
you can send me meaaage by e-mail,epidatasas@gmail.com,</description>
    <pubDate>Tue, 11 May 2010 05:46:28 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-05-11T05:46:28Z</dc:date>
    <item>
      <title>proc freq doesn't work?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-doesn-t-work/m-p/19197#M3855</link>
      <description>hi,can somebody help me?thanks!&lt;BR /&gt;
there're many teachers working for different department,most of them  will teach in more than one department.I want to count frequencies of each teacher for each year and each school,and output to data set.&lt;BR /&gt;
sample:&lt;BR /&gt;
department    year   teacher&lt;BR /&gt;
econ              2002   Samon&lt;BR /&gt;
econ              2003   Samon&lt;BR /&gt;
manag           2003   Stephen&lt;BR /&gt;
manag           2003    Sissi&lt;BR /&gt;
Chem            2002    Sissi&lt;BR /&gt;
Chem            2003     Samon&lt;BR /&gt;
Math             2003    Stephen&lt;BR /&gt;
Math             2004    Laura&lt;BR /&gt;
Eng              2002     Laura&lt;BR /&gt;
Eng              2003    Stephen&lt;BR /&gt;
My program is :&lt;BR /&gt;
Proc freq data=a;&lt;BR /&gt;
table  teacher*(department  year)/out=freqteacher;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 10 May 2010 22:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-doesn-t-work/m-p/19197#M3855</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-10T22:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq doesn't work?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-doesn-t-work/m-p/19198#M3856</link>
      <description>Look at the BY statement - you will need to sort your data on the BY variable list.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 10 May 2010 22:38:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-doesn-t-work/m-p/19198#M3856</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-05-10T22:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq doesn't work?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-doesn-t-work/m-p/19199#M3857</link>
      <description>data crackman;&lt;BR /&gt;
input department $ year teacher$;&lt;BR /&gt;
datalines;&lt;BR /&gt;
econ 2002 Samon&lt;BR /&gt;
econ 2003 Samon&lt;BR /&gt;
manag 2003 Stephen&lt;BR /&gt;
manag 2003 Sissi&lt;BR /&gt;
Chem 2002 Sissi&lt;BR /&gt;
Chem 2003 Samon&lt;BR /&gt;
Math 2003 Stephen&lt;BR /&gt;
Math 2004 Laura&lt;BR /&gt;
Eng 2002 Laura&lt;BR /&gt;
Eng 2003 Stephen&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table crackman as select *,count(*) as count label="frequency" from crackman group by teacher,year;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
this program is what you want?&lt;BR /&gt;
you can send me meaaage by e-mail,epidatasas@gmail.com,</description>
      <pubDate>Tue, 11 May 2010 05:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-doesn-t-work/m-p/19199#M3857</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-11T05:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq doesn't work?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-doesn-t-work/m-p/19200#M3858</link>
      <description>Actually, I do not know exactly what is your error:&lt;BR /&gt;
Here are sample code:&lt;BR /&gt;
&lt;BR /&gt;
data a;&lt;BR /&gt;
input department $ year teacher$;&lt;BR /&gt;
datalines;&lt;BR /&gt;
econ 2002 Samon&lt;BR /&gt;
econ 2003 Samon&lt;BR /&gt;
manag 2003 Stephen&lt;BR /&gt;
manag 2003 Sissi&lt;BR /&gt;
Chem 2002 Sissi&lt;BR /&gt;
Chem 2003 Samon&lt;BR /&gt;
Math 2003 Stephen&lt;BR /&gt;
Math 2004 Laura&lt;BR /&gt;
Eng 2002 Laura&lt;BR /&gt;
Eng 2003 Stephen&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Proc freq data=a;&lt;BR /&gt;
table teacher / out=freqteacher;&lt;BR /&gt;
table teacher*department /out=freqteacher_bydepart;&lt;BR /&gt;
table teacher*year /out=freqteacher_byyear;&lt;BR /&gt;
table teacher*department*year /out=freqteacher_bydepart_byyear;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 11 May 2010 09:07:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-doesn-t-work/m-p/19200#M3858</guid>
      <dc:creator>KevinQin</dc:creator>
      <dc:date>2010-05-11T09:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq doesn't work?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-doesn-t-work/m-p/19201#M3859</link>
      <description>thanks everyone,all  of you are my angel! it works! i love sas!&lt;BR /&gt;
zg</description>
      <pubDate>Tue, 11 May 2010 09:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-doesn-t-work/m-p/19201#M3859</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-11T09:56:49Z</dc:date>
    </item>
  </channel>
</rss>

