<?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 Proc Compare -report in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-Compare-report/m-p/525762#M5012</link>
    <description>&lt;P&gt;Is there a way to send proc compare results to a file (.txt) and append the results to the same file?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 16:27:42 GMT</pubDate>
    <dc:creator>SASPhile</dc:creator>
    <dc:date>2019-01-09T16:27:42Z</dc:date>
    <item>
      <title>Proc Compare -report</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Compare-report/m-p/525762#M5012</link>
      <description>&lt;P&gt;Is there a way to send proc compare results to a file (.txt) and append the results to the same file?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 16:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Compare-report/m-p/525762#M5012</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2019-01-09T16:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Compare -report</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Compare-report/m-p/525770#M5013</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16600"&gt;@SASPhile&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way to send proc compare results to a file (.txt) and append the results to the same file?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm not quite sure what you mean by "append results to the same file".&lt;/P&gt;
&lt;P&gt;Proc Printto can be used to send output to a file that typically goes to the results or listing output. By default output is appended as additional procedures are run.&lt;/P&gt;
&lt;P&gt;If you have other procedures that you do not want in the same output you can suspend output to the file and then restart later.&lt;/P&gt;
&lt;P&gt;Pseudo code:&lt;/P&gt;
&lt;PRE&gt;Proc printto  print="filename"
   new;  
run;

proc compare base=&amp;lt;baseset&amp;gt; compare=&amp;lt;compareset&amp;gt;;
run;

proc printto;
run;
&amp;lt;other procedures&amp;gt;
Proc printto  print="filename"
   ;  
run;

proc compare base=&amp;lt;baseset2&amp;gt; compare=&amp;lt;compareset2&amp;gt;;
run;
proc printto;
run;&lt;/PRE&gt;
&lt;P&gt;If you don't have other procedures in the middle of the ones you want to send to text file then you only need to have the Proc Printto;run; after the last to close the output. Notice that NEW creates a new file and will replace an existing one if used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 16:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Compare-report/m-p/525770#M5013</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-09T16:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Compare -report</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Compare-report/m-p/525772#M5015</link>
      <description>You could put a filepath on your ODS LISTING.&lt;BR /&gt;&lt;BR /&gt;ods listing file='/folders/myfolders/demo.txt';&lt;BR /&gt;&lt;BR /&gt;proc compare ....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ods listing close;</description>
      <pubDate>Wed, 09 Jan 2019 16:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Compare-report/m-p/525772#M5015</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-09T16:45:35Z</dc:date>
    </item>
  </channel>
</rss>

