<?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 Producing report in Word for frequency data from survey in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Producing-report-in-Word-for-frequency-data-from-survey/m-p/128016#M34998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been using the following code to produce frequency counts and percentages of Yes responses for a series of binary questions on a survey (contained in "dataset").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc tabulate data=dataset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var _NUMERIC_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table _NUMERIC_,n='Count' sum='Number of ones' mean= 'Percent ones'*f=percent10.2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i only select certain survey questions (variables) and present them neatly in table form, say, in Word, without manually transcribing everything?&lt;/P&gt;&lt;P&gt;I'd love to learn about different ways to do this, since I expect to need to run this for numerous data sets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Mar 2013 01:58:55 GMT</pubDate>
    <dc:creator>hypermonkey2</dc:creator>
    <dc:date>2013-03-06T01:58:55Z</dc:date>
    <item>
      <title>Producing report in Word for frequency data from survey</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Producing-report-in-Word-for-frequency-data-from-survey/m-p/128016#M34998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been using the following code to produce frequency counts and percentages of Yes responses for a series of binary questions on a survey (contained in "dataset").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc tabulate data=dataset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var _NUMERIC_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table _NUMERIC_,n='Count' sum='Number of ones' mean= 'Percent ones'*f=percent10.2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i only select certain survey questions (variables) and present them neatly in table form, say, in Word, without manually transcribing everything?&lt;/P&gt;&lt;P&gt;I'd love to learn about different ways to do this, since I expect to need to run this for numerous data sets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 01:58:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Producing-report-in-Word-for-frequency-data-from-survey/m-p/128016#M34998</guid>
      <dc:creator>hypermonkey2</dc:creator>
      <dc:date>2013-03-06T01:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Producing report in Word for frequency data from survey</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Producing-report-in-Word-for-frequency-data-from-survey/m-p/128017#M34999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd suggest figuring out how to get the data you want in SAS using proc tabulate first. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get your data to Word you can use ODS RTF. To specify only questions of interest you could put the variables in the table list rather than _numeric_. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods rtf file="C:\temp\test.rtf" style=meadow;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*I'm not sure this proc tabulate code would actually work;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc tabulate data=dataset;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var var_1 var_2;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table var_1 var_2, n='Count' sum='Number of ones' mean= 'Percent ones'*f=percent10.2;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ods rtf close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 02:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Producing-report-in-Word-for-frequency-data-from-survey/m-p/128017#M34999</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-03-06T02:27:24Z</dc:date>
    </item>
  </channel>
</rss>

