<?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: save several proc freq and proc contents table output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/save-several-proc-freq-and-proc-contents-table-output/m-p/446253#M111941</link>
    <description>&lt;P&gt;I would suggest creating document such as RTF or PDF using ods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods rtf file='c:\path\myoutput.rtf';

proc freq data=a; table b c; run;

proc freq data=a1; table b1 c1; run;

proc contents data=a3; run;

ods rtf close;&lt;/PRE&gt;
&lt;P&gt;While those procedures can create output data sets and they could be combined the result would be ugly at best and practically unusable for almost anything. The above code creates a document that most word processors can open for your reading enjoyment. Change the&amp;nbsp; path and file name to what ever you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2018 16:45:15 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-03-16T16:45:15Z</dc:date>
    <item>
      <title>save several proc freq and proc contents table output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/save-several-proc-freq-and-proc-contents-table-output/m-p/446248#M111938</link>
      <description>&lt;P&gt;Is there any way I can save several proc freq and proc contents output tables together (like an log file)?&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=a; table b c; run;&lt;/P&gt;&lt;P&gt;proc freq data=a1; table b1 c1; run;&lt;/P&gt;&lt;P&gt;proc contents data=a3; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to open the saved tables in SAS. Like open an saved log file?&amp;nbsp; Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 16:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/save-several-proc-freq-and-proc-contents-table-output/m-p/446248#M111938</guid>
      <dc:creator>SSH2</dc:creator>
      <dc:date>2018-03-16T16:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: save several proc freq and proc contents table output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/save-several-proc-freq-and-proc-contents-table-output/m-p/446253#M111941</link>
      <description>&lt;P&gt;I would suggest creating document such as RTF or PDF using ods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods rtf file='c:\path\myoutput.rtf';

proc freq data=a; table b c; run;

proc freq data=a1; table b1 c1; run;

proc contents data=a3; run;

ods rtf close;&lt;/PRE&gt;
&lt;P&gt;While those procedures can create output data sets and they could be combined the result would be ugly at best and practically unusable for almost anything. The above code creates a document that most word processors can open for your reading enjoyment. Change the&amp;nbsp; path and file name to what ever you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 16:45:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/save-several-proc-freq-and-proc-contents-table-output/m-p/446253#M111941</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-16T16:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: save several proc freq and proc contents table output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/save-several-proc-freq-and-proc-contents-table-output/m-p/446254#M111942</link>
      <description>&lt;P&gt;You have several output options, within SAS and outside.&lt;/P&gt;
&lt;P&gt;You can use ODS to have the results sent to PDF, RTF (word), XLSX, PPTX, HTML and some other options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can capture the data into tables and use those.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're looking for the latter, use the OUT= on the TABLE statement and PROC CONTENTS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the first, then use something like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='path to file.pdf';


Your sas code goes here;


ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/195848"&gt;@SSH2&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Is there any way I can save several proc freq and proc contents output tables together (like an log file)?&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=a; table b c; run;&lt;/P&gt;
&lt;P&gt;proc freq data=a1; table b1 c1; run;&lt;/P&gt;
&lt;P&gt;proc contents data=a3; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to open the saved tables in SAS. Like open an saved log file?&amp;nbsp; Thank you&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 16:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/save-several-proc-freq-and-proc-contents-table-output/m-p/446254#M111942</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-16T16:46:22Z</dc:date>
    </item>
  </channel>
</rss>

