<?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: No proc compare in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/No-proc-compare/m-p/207148#M267198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use PROC COMPARE with a RENAME= option on the COMPARE= data set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2015 20:59:41 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2015-08-25T20:59:41Z</dc:date>
    <item>
      <title>No proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Programming/No-proc-compare/m-p/207147#M267197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am comparing two large datasets that should be identical.&amp;nbsp; I was just told by the client that they want an output that will only be generated if there are exceptions.&amp;nbsp; There are 66 variables but there could be more in other similar tests, there are character and numeric variables.&amp;nbsp; The only thing I can think of is to merge on id and date and check each variable.&amp;nbsp; If I add Prev_ to the variable name and then merge I can check each one but that seems horrible.&amp;nbsp; The variable names are not consistent in any way.&amp;nbsp; I'm not sure what additional information to put, just looking for any better solutions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 20:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/No-proc-compare/m-p/207147#M267197</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-08-25T20:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: No proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Programming/No-proc-compare/m-p/207148#M267198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use PROC COMPARE with a RENAME= option on the COMPARE= data set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 20:59:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/No-proc-compare/m-p/207148#M267198</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-08-25T20:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: No proc compare</title>
      <link>https://communities.sas.com/t5/SAS-Programming/No-proc-compare/m-p/207149#M267199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start with Proc Compare and options nodate novalues. You will get a summary of common variable names with differing characteristics, variables that exist in only one data set, and if the sets are sorted in similar fashion a summary of differing pairs which are marginally useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further step would be using the ID option which specifies variables used to identify the records so you get better matches, and WITH and VAR statements to provide a list variable pairs;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VAR Id date amount;&lt;/P&gt;&lt;P&gt;WITH CustId PurchaseDate PurchaseValue;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would compare values of Id with CustId, date with PurchaseDate and Amount with PurchaseValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you have similar "candidates" for comparison you do something like&lt;/P&gt;&lt;P&gt;Var Date Date;&lt;/P&gt;&lt;P&gt;With PurchaseDate PaidDate; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be an iterative process, so don't expect to get it in one pass. And custom writing your proposed code might take quite a bit longer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 21:21:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/No-proc-compare/m-p/207149#M267199</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-08-25T21:21:36Z</dc:date>
    </item>
  </channel>
</rss>

