<?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 output to multiple files  (sas 9.4) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-output-to-multiple-files-sas-9-4/m-p/264578#M51923</link>
    <description>&lt;P&gt;Sounds like you are generating clinical tables? &amp;nbsp;If so check with your company for standards, macros and such like. &amp;nbsp;You can output certain objects that freq creates - you can see what objects are created by:&lt;/P&gt;
&lt;P&gt;ods trace=on;&lt;/P&gt;
&lt;P&gt;proc freq...&lt;/P&gt;
&lt;P&gt;ods trace=on;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the log you will see the objects. &amp;nbsp;You can now save these by:&lt;/P&gt;
&lt;P&gt;ods output &amp;lt;object&amp;gt;=&amp;lt;dataset&amp;gt;;&lt;/P&gt;
&lt;P&gt;proc freq...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can use that dataset as you want, i.e. proc report and such like. &amp;nbsp;You will want to add titles/footnotes, apply a template, specify filetype etc.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2016 14:42:31 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-04-18T14:42:31Z</dc:date>
    <item>
      <title>proc freq output to multiple files  (sas 9.4)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-output-to-multiple-files-sas-9-4/m-p/264571#M51922</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to have a listing of subjects and their treatments by site. I did proc freq by site and got the tables that I need in the results window, but I need them to be outputted in indvidual rtf files so each rtf contains info specific for that site.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions on how to go about this would be greatly appreciated!&lt;/P&gt;
&lt;P&gt;Thanks!!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 14:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-output-to-multiple-files-sas-9-4/m-p/264571#M51922</guid>
      <dc:creator>libragirl9</dc:creator>
      <dc:date>2016-04-18T14:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq output to multiple files  (sas 9.4)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-output-to-multiple-files-sas-9-4/m-p/264578#M51923</link>
      <description>&lt;P&gt;Sounds like you are generating clinical tables? &amp;nbsp;If so check with your company for standards, macros and such like. &amp;nbsp;You can output certain objects that freq creates - you can see what objects are created by:&lt;/P&gt;
&lt;P&gt;ods trace=on;&lt;/P&gt;
&lt;P&gt;proc freq...&lt;/P&gt;
&lt;P&gt;ods trace=on;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the log you will see the objects. &amp;nbsp;You can now save these by:&lt;/P&gt;
&lt;P&gt;ods output &amp;lt;object&amp;gt;=&amp;lt;dataset&amp;gt;;&lt;/P&gt;
&lt;P&gt;proc freq...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can use that dataset as you want, i.e. proc report and such like. &amp;nbsp;You will want to add titles/footnotes, apply a template, specify filetype etc.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 14:42:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-output-to-multiple-files-sas-9-4/m-p/264578#M51923</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-18T14:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq output to multiple files  (sas 9.4)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-freq-output-to-multiple-files-sas-9-4/m-p/264613#M51927</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at the &lt;A href="http://support.sas.com/documentation/cdl/en/odsug/67921/HTML/default/viewer.htm#p1vvsv8ucnjzjnn1wq5wrlp74mdb.htm" target="_blank"&gt;NEWFILE= option of the ODS RTF statement&lt;/A&gt;. This will help you to achieve what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need more control on the naming of the RTF files have a look at this blog post &lt;A href="http://blogs.sas.com/content/sasdummy/2012/03/20/sas-program-by-processing/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2012/03/20/sas-program-by-processing/&lt;/A&gt; by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger﻿&lt;/a&gt; This programming pattern can be used over and over.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 16:13:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-freq-output-to-multiple-files-sas-9-4/m-p/264613#M51927</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-04-18T16:13:51Z</dc:date>
    </item>
  </channel>
</rss>

