<?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: Output option in PROC FREQ in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Output-option-in-PROC-FREQ/m-p/16194#M2921</link>
    <description>Thanks for all the inputs - both methods work....&lt;BR /&gt;
&lt;BR /&gt;
I really appreciate your time.&lt;BR /&gt;
&lt;BR /&gt;
Pappu.</description>
    <pubDate>Wed, 08 Apr 2009 16:49:24 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-04-08T16:49:24Z</dc:date>
    <item>
      <title>Output option in PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-option-in-PROC-FREQ/m-p/16191#M2918</link>
      <description>Hello All&lt;BR /&gt;
&lt;BR /&gt;
I am trying to generate a dataset for the output of the PROC FREQ. I am trying to use the output option but it is erroring out saying it needs a statistic where I need only the freq.&lt;BR /&gt;
&lt;BR /&gt;
Here is the code:&lt;BR /&gt;
&lt;B&gt;proc freq data = sshh.sshh_data4;&lt;BR /&gt;
	tables rspnsby_cntr_id;&lt;BR /&gt;
	output out = sshh.sshh_data10;&lt;BR /&gt;
run;&lt;/B&gt;&lt;BR /&gt;
The message in the log is:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;WARNING: No OUTPUT data set is produced because no statistics are requested in the corresponding&lt;BR /&gt;
         TABLES statement.&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
So I have 2 questions:&lt;BR /&gt;
1. How do I generate the dataset?&lt;BR /&gt;
2. If the above is the only way what do I have to specify as the statistic to get the freq counts?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Pappu.</description>
      <pubDate>Tue, 07 Apr 2009 18:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-option-in-PROC-FREQ/m-p/16191#M2918</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-07T18:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Output option in PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-option-in-PROC-FREQ/m-p/16192#M2919</link>
      <description>Try:&lt;BR /&gt;
&lt;BR /&gt;
proc freq data = sshh.sshh_data4;&lt;BR /&gt;
tables rspnsby_cntr_id / out = sshh.sshh_data10;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/procstat.hlp/freq_sect10.htm#basestat_freq_freqout" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/procstat.hlp/freq_sect10.htm#basestat_freq_freqout&lt;/A&gt;</description>
      <pubDate>Tue, 07 Apr 2009 20:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-option-in-PROC-FREQ/m-p/16192#M2919</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2009-04-07T20:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Output option in PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-option-in-PROC-FREQ/m-p/16193#M2920</link>
      <description>Well, you have to specify a statistic on the tables or the output statement, according to the online doc. You are probably interested in the N statistic. But if you just want the freq, you could always do the same in PROC SQL using count and group by.&lt;BR /&gt;
&lt;BR /&gt;
/Linus&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/59629/HTML/default/procstat_freq_sect009.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/procstat/59629/HTML/default/procstat_freq_sect009.htm&lt;/A&gt;</description>
      <pubDate>Tue, 07 Apr 2009 20:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-option-in-PROC-FREQ/m-p/16193#M2920</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-04-07T20:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Output option in PROC FREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-option-in-PROC-FREQ/m-p/16194#M2921</link>
      <description>Thanks for all the inputs - both methods work....&lt;BR /&gt;
&lt;BR /&gt;
I really appreciate your time.&lt;BR /&gt;
&lt;BR /&gt;
Pappu.</description>
      <pubDate>Wed, 08 Apr 2009 16:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-option-in-PROC-FREQ/m-p/16194#M2921</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-08T16:49:24Z</dc:date>
    </item>
  </channel>
</rss>

