<?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 Compare every columns value from different snapshot in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Compare-every-columns-value-from-different-snapshot/m-p/614018#M76881</link>
    <description>Could sas be used to compare multiple snapshots of the same tables taken on different days (like each month end)?&lt;BR /&gt;There are tables which staff access to enter new data but they could also update value of existing columns. I was ask to check same table snapshot taken in the end of month to extract rows which have some values modified since the first snapshot. And report back the first entered value and the last updated value. Tables contains 30 to 50 columns and each table have a bit less than 600k rows.&lt;BR /&gt;I do not think it’s simple and easy to write sql query. Would sas be good at doing such comparisons ?</description>
    <pubDate>Fri, 27 Dec 2019 05:32:33 GMT</pubDate>
    <dc:creator>Shigoto</dc:creator>
    <dc:date>2019-12-27T05:32:33Z</dc:date>
    <item>
      <title>Compare every columns value from different snapshot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Compare-every-columns-value-from-different-snapshot/m-p/614018#M76881</link>
      <description>Could sas be used to compare multiple snapshots of the same tables taken on different days (like each month end)?&lt;BR /&gt;There are tables which staff access to enter new data but they could also update value of existing columns. I was ask to check same table snapshot taken in the end of month to extract rows which have some values modified since the first snapshot. And report back the first entered value and the last updated value. Tables contains 30 to 50 columns and each table have a bit less than 600k rows.&lt;BR /&gt;I do not think it’s simple and easy to write sql query. Would sas be good at doing such comparisons ?</description>
      <pubDate>Fri, 27 Dec 2019 05:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Compare-every-columns-value-from-different-snapshot/m-p/614018#M76881</guid>
      <dc:creator>Shigoto</dc:creator>
      <dc:date>2019-12-27T05:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare every columns value from different snapshot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Compare-every-columns-value-from-different-snapshot/m-p/614030#M76882</link>
      <description>&lt;P&gt;Use proc compare, to compare the 1st snapshot (&lt;STRONG&gt;base&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; with the last one (&lt;STRONG&gt;compare&lt;/STRONG&gt;=).&lt;/P&gt;
&lt;P&gt;To compare numeric value use option &lt;STRONG&gt;criterion&lt;/STRONG&gt;= (like criterion=0.01 for rounded cents).&lt;/P&gt;
&lt;P&gt;Use &lt;STRONG&gt;by&lt;/STRONG&gt; statement to force comparing same IDs.&lt;/P&gt;
&lt;P&gt;Check documentation for more options and possibilities.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 08:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Compare-every-columns-value-from-different-snapshot/m-p/614030#M76882</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-12-27T08:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare every columns value from different snapshot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Compare-every-columns-value-from-different-snapshot/m-p/614032#M76883</link>
      <description>Thank you for the reply.&amp;nbsp;Most of the values are not number, they are varchar&amp;nbsp;and&amp;nbsp;text. Such as comment and adress. Could ‘by’ be used to compare text value change ?&amp;nbsp;And each table has 30 to 50 columns to be checked if there are difference between 1 month old snapshot, 2 months old one, 3 months old one.&amp;nbsp;So I can only compare two copies at a time with ‘by’ function, is it true?I wonder if It is&amp;nbsp;something rather simple?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Dec 2019 08:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Compare-every-columns-value-from-different-snapshot/m-p/614032#M76883</guid>
      <dc:creator>Shigoto</dc:creator>
      <dc:date>2019-12-27T08:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Compare every columns value from different snapshot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Compare-every-columns-value-from-different-snapshot/m-p/614038#M76884</link>
      <description>&lt;P&gt;You can use &lt;STRONG&gt;keep&lt;/STRONG&gt;= option in both tables, base and compare, in order to compare selected variables only.&lt;/P&gt;
&lt;P&gt;Proc compare will compare all matching selected variables by names, character type as numeric.&lt;/P&gt;
&lt;P&gt;You probably don't want to compare address of ID1 with that of ID2. Using &lt;STRONG&gt;by&lt;/STRONG&gt; statement will&lt;/P&gt;
&lt;P&gt;compare matching IDs. The output list will contain all not matching IDs and all&lt;/P&gt;
&lt;P&gt;matching IDS if there are unequal values of matching variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best try it and check output listing.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 08:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Compare-every-columns-value-from-different-snapshot/m-p/614038#M76884</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-12-27T08:59:57Z</dc:date>
    </item>
  </channel>
</rss>

