<?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 Find variable names that are in one dataset but not in another in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Find-variable-names-that-are-in-one-dataset-but-not-in-another/m-p/169214#M1901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I have 2 data sets:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data investment;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; begin='01JAN1990'd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end='31DEC2009'd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data investment_2;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; begin='01JAN1990'd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to write a program that will give me list of all columns that are in investment but not in investment_2. So in this case, the variable 'end'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this? I dont want to list out the column names using proc contents on eaqch dataset and then manually eyeball it and check for differences.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 17:09:56 GMT</pubDate>
    <dc:creator>eagles_dare13</dc:creator>
    <dc:date>2015-01-05T17:09:56Z</dc:date>
    <item>
      <title>Find variable names that are in one dataset but not in another</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Find-variable-names-that-are-in-one-dataset-but-not-in-another/m-p/169214#M1901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I have 2 data sets:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data investment;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; begin='01JAN1990'd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end='31DEC2009'd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data investment_2;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; begin='01JAN1990'd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to write a program that will give me list of all columns that are in investment but not in investment_2. So in this case, the variable 'end'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this? I dont want to list out the column names using proc contents on eaqch dataset and then manually eyeball it and check for differences.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 17:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Find-variable-names-that-are-in-one-dataset-but-not-in-another/m-p/169214#M1901</guid>
      <dc:creator>eagles_dare13</dc:creator>
      <dc:date>2015-01-05T17:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find variable names that are in one dataset but not in another</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Find-variable-names-that-are-in-one-dataset-but-not-in-another/m-p/169215#M1902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;compare&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;base&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=investment(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;obs&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;compare&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=investment_2(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;obs&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;listbase&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 17:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Find-variable-names-that-are-in-one-dataset-but-not-in-another/m-p/169215#M1902</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-01-05T17:18:40Z</dc:date>
    </item>
  </channel>
</rss>

