<?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 SAS Macro to Compare two datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-to-Compare-two-datasets/m-p/513912#M138532</link>
    <description>&lt;P&gt;Hi, im new to sas macros. how would I go about creating a macro to do the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# Does the comparison table have all columns present in the base dataset?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Does the comparison table have any columns not present in the base dataset?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Are corresponding columns between tables of the same data type?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Are corresponding character columns of the same length?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Do the tables have the same number of records?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;any help is appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Nov 2018 15:20:22 GMT</pubDate>
    <dc:creator>juanvenegas</dc:creator>
    <dc:date>2018-11-16T15:20:22Z</dc:date>
    <item>
      <title>SAS Macro to Compare two datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-to-Compare-two-datasets/m-p/513912#M138532</link>
      <description>&lt;P&gt;Hi, im new to sas macros. how would I go about creating a macro to do the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# Does the comparison table have all columns present in the base dataset?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Does the comparison table have any columns not present in the base dataset?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Are corresponding columns between tables of the same data type?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Are corresponding character columns of the same length?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Do the tables have the same number of records?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;any help is appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 15:20:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-to-Compare-two-datasets/m-p/513912#M138532</guid>
      <dc:creator>juanvenegas</dc:creator>
      <dc:date>2018-11-16T15:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro to Compare two datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-to-Compare-two-datasets/m-p/513914#M138533</link>
      <description>&lt;P&gt;Without question, here is the right way to get started.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cut out the macros.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Write a program that does all of this for two data sets, hard-coding the data set names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have working code, you can begin to think about how to change that to a macro.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 15:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-to-Compare-two-datasets/m-p/513914#M138533</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-11-16T15:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro to Compare two datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-to-Compare-two-datasets/m-p/513916#M138534</link>
      <description>&lt;P&gt;Tip 1, use Base SAS.&lt;/P&gt;
&lt;P&gt;Tip 2, use the appropriate procedure:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n0c1y14wyd3u7yn1dmfcpaejllsn.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n0c1y14wyd3u7yn1dmfcpaejllsn.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Proc compare is specifically designed to do these comparisons.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 15:31:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-to-Compare-two-datasets/m-p/513916#M138534</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-11-16T15:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro to Compare two datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-to-Compare-two-datasets/m-p/513929#M138541</link>
      <description>PROC COMPARE will output all of those statistics for you. And most you can capture easily into data sets.</description>
      <pubDate>Fri, 16 Nov 2018 15:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-to-Compare-two-datasets/m-p/513929#M138541</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-16T15:54:34Z</dc:date>
    </item>
  </channel>
</rss>

