<?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 save proc freq result as a table? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347598#M80321</link>
    <description>But it seems that the output doesn't include the cumulative frequency and cumulative percent. Is it possible to get these variables as well?</description>
    <pubDate>Thu, 06 Apr 2017 05:35:22 GMT</pubDate>
    <dc:creator>afiqcjohari</dc:creator>
    <dc:date>2017-04-06T05:35:22Z</dc:date>
    <item>
      <title>How to save proc freq result as a table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347589#M80313</link>
      <description>&lt;P&gt;This should be pretty much straightforward but I can't get it work even after reading through the documentation...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*save the var1 freq table*/
proc freq data=have order=freq ;
output out=var1_freq;
tables var1/list missing;  
run;

/*save the two freq tables*/
proc freq data=have order=freq ;
output out=var1_freq var1var2_freq;
tables var1 var1*var2/list missing;  
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Apr 2017 04:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347589#M80313</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-04-06T04:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to save proc freq result as a table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347591#M80315</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=have order=freq ;&lt;BR /&gt;tables var1/list missing out=var1_freq;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/*save the two freq tables*/&lt;BR /&gt;proc freq data=have order=freq ;&lt;BR /&gt;tables var1 var1*var2/list missing out=var2_freq;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 04:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347591#M80315</guid>
      <dc:creator>Rohit12</dc:creator>
      <dc:date>2017-04-06T04:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to save proc freq result as a table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347592#M80316</link>
      <description>proc freq data=have;&lt;BR /&gt;tables var1/out=var1_data;&lt;BR /&gt;tables var1*var2/out=var2_data;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 06 Apr 2017 04:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347592#M80316</guid>
      <dc:creator>lakshmi_74</dc:creator>
      <dc:date>2017-04-06T04:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to save proc freq result as a table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347595#M80319</link>
      <description>&lt;P&gt;Read the warnings in your log. Always.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They state that a statistic is required.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OUT on the TABLES statement is used to capture the frequencies.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OUTPUT statement is used to capture test statistics.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS OUTPUT is a different way to keep the counts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the example below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc freq data=SASHELP.class;&lt;/P&gt;
&lt;P&gt;tables sex / out = freqs chisq;&lt;/P&gt;
&lt;P&gt;output out= stats chisq;&lt;/P&gt;
&lt;P&gt;ODS onewayFreq= frreqs2;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 04:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347595#M80319</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-06T04:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to save proc freq result as a table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347597#M80320</link>
      <description>I see, thanks for the explanation Reeza.</description>
      <pubDate>Thu, 06 Apr 2017 05:26:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347597#M80320</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-04-06T05:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to save proc freq result as a table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347598#M80321</link>
      <description>But it seems that the output doesn't include the cumulative frequency and cumulative percent. Is it possible to get these variables as well?</description>
      <pubDate>Thu, 06 Apr 2017 05:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347598#M80321</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-04-06T05:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to save proc freq result as a table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347681#M80370</link>
      <description>&lt;P&gt;RTM for the options on the TABLES statement that control the output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 12:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-save-proc-freq-result-as-a-table/m-p/347681#M80370</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-06T12:45:24Z</dc:date>
    </item>
  </channel>
</rss>

