<?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 compare multiple data sets in one go in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-compare-multiple-data-sets-in-one-go/m-p/160024#M12439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the macro documentation.&amp;nbsp;&amp;nbsp; Also you could use a datastep and call execute.&amp;nbsp; There are many examples on here on either style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro do_compare(file=);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc compare base=&amp;amp;file. comp=file out=&amp;amp;comp_file.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;%mend do_compare;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%do_compare(file=filea);&lt;/P&gt;&lt;P&gt;%do_compare(file=fileb);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2014 15:24:53 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-05-15T15:24:53Z</dc:date>
    <item>
      <title>proc compare multiple data sets in one go</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-compare-multiple-data-sets-in-one-go/m-p/160023#M12438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I have 10 sas datasets in folder A and 10 sas datasets in folder B, can I compare the two folders, matching the datasets by their name, or do i need to write 10 different proc compare statements, one for each data set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 15:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-compare-multiple-data-sets-in-one-go/m-p/160023#M12438</guid>
      <dc:creator>eagles_dare13</dc:creator>
      <dc:date>2014-05-15T15:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare multiple data sets in one go</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-compare-multiple-data-sets-in-one-go/m-p/160024#M12439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the macro documentation.&amp;nbsp;&amp;nbsp; Also you could use a datastep and call execute.&amp;nbsp; There are many examples on here on either style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro do_compare(file=);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc compare base=&amp;amp;file. comp=file out=&amp;amp;comp_file.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;%mend do_compare;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%do_compare(file=filea);&lt;/P&gt;&lt;P&gt;%do_compare(file=fileb);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 15:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-compare-multiple-data-sets-in-one-go/m-p/160024#M12439</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-05-15T15:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare multiple data sets in one go</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-compare-multiple-data-sets-in-one-go/m-p/160025#M12440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there is something specific you are trying to determine it might be time to ask for help with the specific desired comparisons. Since Proc Compare kind of expects sets to be sorted in the same order to get many of the more interesting results ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 19:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-compare-multiple-data-sets-in-one-go/m-p/160025#M12440</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-05-15T19:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare multiple data sets in one go</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-compare-multiple-data-sets-in-one-go/m-p/609246#M35215</link>
      <description>&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;libname new &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"/dmenv/dmwork/gsk2118436/brf113928/test/raw/FROM_FSP/Transfer_20190916/BRF113928_ToNovartis_20190916/new"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; old &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"/dmenv/dmwork/gsk2118436/brf113928/test/raw/FROM_FSP/Transfer_20190910/BRF113928_ToNovartis_20190910/old"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;select&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;distinct&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; memname &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;:macvar separated &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;by&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;' '&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; sashelp.vstable &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; upcase(libname)=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"NEW"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;quit&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; &amp;amp;macvar; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; &lt;STRONG&gt;&lt;I&gt;test&lt;/I&gt;&lt;/STRONG&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%local&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; i; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%do&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; i= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%to&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; &amp;amp;sqlobs; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; dst=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%scan&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(&amp;amp;macvar,&amp;amp;i,' ');&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Proc Compare Base = &lt;FONT color="#008080"&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;amp;dst Compare = old&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;amp;dst&lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;/*Outbase OutComp Outdiff Outnoequal*/&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;listall &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Out = Dm_Diff_comp ;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; &amp;amp;dst ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;test&lt;/I&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 03:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-compare-multiple-data-sets-in-one-go/m-p/609246#M35215</guid>
      <dc:creator>Saidurga1</dc:creator>
      <dc:date>2019-12-04T03:42:16Z</dc:date>
    </item>
  </channel>
</rss>

