<?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 Out Using PROC SURVEYFREQ in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/316776#M61745</link>
    <description>&lt;P&gt;ODS OUTPUT CrossTabs=want;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2016 16:55:29 GMT</pubDate>
    <dc:creator>_maldini_</dc:creator>
    <dc:date>2016-12-05T16:55:29Z</dc:date>
    <item>
      <title>Output Out Using PROC SURVEYFREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313561#M61491</link>
      <description>&lt;P&gt;Can I ouput Weighted Frequency and other values from a&amp;nbsp;PROC SURVEYFREQ table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doing a 3 way comparison using PROC SURVEYFREQ -&amp;nbsp;TABLES flag*year*age_cat*injury;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This produces a table w/ the frequency of injuries in each age category (i.e. age_cat) &amp;nbsp;by year. Ulitmately,&amp;nbsp;I want an outputted dataset with the Weighted Freqency and Percent for injury for each age category and year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My ideal output would look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;year &amp;nbsp; &amp;nbsp; &amp;nbsp;age_cat &amp;nbsp; &amp;nbsp;weighted frequency &amp;nbsp;percent&lt;/P&gt;
&lt;P&gt;2002 &amp;nbsp; &amp;nbsp; 0-2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 125,000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.34&lt;/P&gt;
&lt;P&gt;2002 &amp;nbsp; &amp;nbsp; 3-10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;127,000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x.xx&lt;/P&gt;
&lt;P&gt;2002 &amp;nbsp; &amp;nbsp; 11-16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 145,000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x.xx&lt;/P&gt;
&lt;P&gt;2002 &amp;nbsp; &amp;nbsp; 17-21 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 115,000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x.xx&lt;/P&gt;
&lt;P&gt;2003 &amp;nbsp; &amp;nbsp; 0-2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 155,000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.34&lt;/P&gt;
&lt;P&gt;2003 &amp;nbsp; &amp;nbsp; 3-10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;177,000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x.xx&lt;/P&gt;
&lt;P&gt;2003 &amp;nbsp; &amp;nbsp; 11-16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 115,000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x.xx&lt;/P&gt;
&lt;P&gt;2003 &amp;nbsp; &amp;nbsp; 17-21 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 105,000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x.xx&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 21:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313561#M61491</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-11-22T21:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Output Out Using PROC SURVEYFREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313584#M61492</link>
      <description>&lt;P&gt;What exactly are you having trouble with then?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313584#M61492</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-22T20:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Output Out Using PROC SURVEYFREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313596#M61493</link>
      <description>&lt;P&gt;I don't know the correct syntax. I've never used PROC SURVEYFREQ to output to a dataset before...&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 21:27:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313596#M61493</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-11-22T21:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Output Out Using PROC SURVEYFREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313599#M61494</link>
      <description>&lt;P&gt;You're switching to proc freq/surveyfreq, which one are you trying to run?&lt;/P&gt;
&lt;P&gt;What have you tried?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 21:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313599#M61494</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-22T21:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Output Out Using PROC SURVEYFREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313606#M61498</link>
      <description>&lt;P&gt;I'm running PROC SURVEYFREQ. Sorry for the confusion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I identify, and output, the values I want? For example, how do I tell SAS I want the "Weighted Frequency" and the "Percent" in a new dataset named "want"? Are these listed as options in the TABLES statement? How do I specify that I want these values for the varialbe injury?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tables flag*year*age_cat*injury / OUT=want, weightedfreq pct;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried using ODS per &lt;A href="https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_surveyfreq_sect023.htm" target="_self"&gt;these instructions&lt;/A&gt;, but I can only make it work for a oneway table. I don't know which keyword to use for what I DO want. I've tried "twoway", "fourway", "nway", each time the log states that output "twoway", for example, was not created.&lt;/P&gt;
&lt;PRE class="sascode"&gt;ods output OneWay=WantTable;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 21:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313606#M61498</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-11-22T21:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Output Out Using PROC SURVEYFREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313612#M61501</link>
      <description>&lt;P&gt;Find the correct table name using ODS TRACE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2015/09/08/ods-table-names.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2015/09/08/ods-table-names.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 22:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313612#M61501</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-22T22:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Output Out Using PROC SURVEYFREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313661#M61511</link>
      <description>&lt;P&gt;Actually, I didn't find the answer here, you did.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If possible post what code you ended up using and mark that as the correct solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 05:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/313661#M61511</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-23T05:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Output Out Using PROC SURVEYFREQ</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/316776#M61745</link>
      <description>&lt;P&gt;ODS OUTPUT CrossTabs=want;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 16:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-Out-Using-PROC-SURVEYFREQ/m-p/316776#M61745</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-12-05T16:55:29Z</dc:date>
    </item>
  </channel>
</rss>

