<?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: How to Compare Two Datasets (Old and New), Merge both, and Highlight changed or new records in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703422#M215524</link>
    <description>Thanks for the advice, I will do as said immediately.&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
    <pubDate>Thu, 03 Dec 2020 15:44:46 GMT</pubDate>
    <dc:creator>Generalgwill</dc:creator>
    <dc:date>2020-12-03T15:44:46Z</dc:date>
    <item>
      <title>How to Compare Two Datasets (Old and New), Merge both, and Highlight changed or new records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703340#M215479</link>
      <description>&lt;P&gt;I have two similar datasets generated on different days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First Dataset attached called:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Have generated on 03NOV2020&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have ;&lt;/P&gt;&lt;P&gt;format date_1 date9. ;&lt;/P&gt;&lt;P&gt;input id $ sp_num $ type $&amp;nbsp; date_1 yymmdd8.;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;101 a01 p 20160102&lt;/P&gt;&lt;P&gt;101 a01 b 20160103&lt;/P&gt;&lt;P&gt;102 b02 b 20160104&lt;/P&gt;&lt;P&gt;102 b02 b 20160105&lt;/P&gt;&lt;P&gt;103 c03 p 20160106&lt;/P&gt;&lt;P&gt;103 c03 p 20160107&lt;/P&gt;&lt;P&gt;103 c03 b 20160108&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The second Dataset attached called:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Want generated 30NOV2020&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;format date_1 date9. ;&lt;/P&gt;&lt;P&gt;input id $ sp_num $ type $&amp;nbsp; date_1 yymmdd8.;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;101 a01 b 20160103&lt;/P&gt;&lt;P&gt;103 c03 b 20160108&lt;/P&gt;&lt;P&gt;101 a01 b 20160103&lt;/P&gt;&lt;P&gt;103 c03 b 20160108&lt;/P&gt;&lt;P&gt;101 a01 b 20160103&lt;/P&gt;&lt;P&gt;103 c03 e 20180108&lt;/P&gt;&lt;P&gt;101 a01 f 20180103&lt;/P&gt;&lt;P&gt;103 c03 d 20160108&lt;/P&gt;&lt;P&gt;101 a01 s 20180103&lt;/P&gt;&lt;P&gt;103 c03 e 20180108&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want my OUTPUT to look like this: All new rows added to be highlighted or indicated in a new column called row_stats&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Desired Output.PNG" style="width: 785px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52284i243823974D9DD949/image-dimensions/785x383?v=v2" width="785" height="383" role="button" title="Desired Output.PNG" alt="Desired Output.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I will be super excited if anyone could help me out.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 15:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703340#M215479</guid>
      <dc:creator>Generalgwill</dc:creator>
      <dc:date>2020-12-03T15:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare Two Datasets (Old and New), Merge both, and Highlight changed or new records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703343#M215481</link>
      <description>&lt;P&gt;Most of us will not download and open Microsoft Excel files (or any files) because it can be a security threat. Please include a portion of your data in your message by following &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/&lt;/A&gt;&amp;nbsp;(and not in any other format). The desired output can be included into your reply as a screen capture.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 11:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703343#M215481</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-03T11:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare Two Datasets (Old and New), Merge both, and Highlight changed or new records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703349#M215484</link>
      <description>&lt;P&gt;Once you have read in and sorted both data sets, use PROC COMPARE to find differences.&amp;nbsp; In this case, use a BY statement.&amp;nbsp; It will do a much more accurate and thorough job, and is much simpler than trying to code it yourself.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 12:25:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703349#M215484</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-12-03T12:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare Two Datasets (Old and New), Merge both, and Highlight changed or new records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703365#M215495</link>
      <description>&lt;P&gt;&lt;A title="COMPARE Procedure documentation link" href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n1nwxbchh5hpu1n1h28kmici2awd.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;COMPARE Procedure documentation link&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 13:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703365#M215495</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2020-12-03T13:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare Two Datasets (Old and New), Merge both, and Highlight changed or new records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703416#M215520</link>
      <description>Thank you, but I look forward to a more better way were new records could be highlighted as in the image attached.</description>
      <pubDate>Thu, 03 Dec 2020 15:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703416#M215520</guid>
      <dc:creator>Generalgwill</dc:creator>
      <dc:date>2020-12-03T15:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare Two Datasets (Old and New), Merge both, and Highlight changed or new records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703418#M215521</link>
      <description>Thank you, it was helpful.</description>
      <pubDate>Thu, 03 Dec 2020 15:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703418#M215521</guid>
      <dc:creator>Generalgwill</dc:creator>
      <dc:date>2020-12-03T15:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare Two Datasets (Old and New), Merge both, and Highlight changed or new records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703422#M215524</link>
      <description>Thanks for the advice, I will do as said immediately.&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
      <pubDate>Thu, 03 Dec 2020 15:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compare-Two-Datasets-Old-and-New-Merge-both-and-Highlight/m-p/703422#M215524</guid>
      <dc:creator>Generalgwill</dc:creator>
      <dc:date>2020-12-03T15:44:46Z</dc:date>
    </item>
  </channel>
</rss>

