<?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: Which columns are missing from base dataset? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Which-columns-are-missing-from-base-dataset/m-p/787144#M251442</link>
    <description>&lt;P&gt;PROC COMPARE includes that in the output. There's a section titled:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Listing of Variables in Dataset1 and not in Dataset2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See second image in this example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p1k00d45g03uv8n1bfx3d20breg6.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p1k00d45g03uv8n1bfx3d20breg6.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try adding the PRINTALL option to PROC COMPARE if it's not appearing for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/311553"&gt;@mariko5797&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have two datasets that should be the same. Using PROC COMPARE, I saw that values of variables available in both datasets are the same. However, one dataset has more variables than the other. &lt;STRONG&gt;Is there&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;a way to check which variables &lt;EM&gt;(i.e.&lt;/EM&gt;&amp;nbsp;columns)&amp;nbsp;are missing?&lt;/STRONG&gt; Since there are 100+ variables, I would rather not visually check this.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 17:42:23 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-12-22T17:42:23Z</dc:date>
    <item>
      <title>Which columns are missing from base dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-columns-are-missing-from-base-dataset/m-p/787138#M251438</link>
      <description>&lt;P&gt;I have two datasets that should be the same. Using PROC COMPARE, I saw that values of variables available in both datasets are the same. However, one dataset has more variables than the other. &lt;STRONG&gt;Is there&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;a way to check which variables &lt;EM&gt;(i.e.&lt;/EM&gt;&amp;nbsp;columns)&amp;nbsp;are missing?&lt;/STRONG&gt; Since there are 100+ variables, I would rather not visually check this.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 17:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-columns-are-missing-from-base-dataset/m-p/787138#M251438</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2021-12-22T17:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Which columns are missing from base dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-columns-are-missing-from-base-dataset/m-p/787144#M251442</link>
      <description>&lt;P&gt;PROC COMPARE includes that in the output. There's a section titled:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Listing of Variables in Dataset1 and not in Dataset2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See second image in this example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p1k00d45g03uv8n1bfx3d20breg6.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p1k00d45g03uv8n1bfx3d20breg6.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try adding the PRINTALL option to PROC COMPARE if it's not appearing for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/311553"&gt;@mariko5797&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have two datasets that should be the same. Using PROC COMPARE, I saw that values of variables available in both datasets are the same. However, one dataset has more variables than the other. &lt;STRONG&gt;Is there&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;a way to check which variables &lt;EM&gt;(i.e.&lt;/EM&gt;&amp;nbsp;columns)&amp;nbsp;are missing?&lt;/STRONG&gt; Since there are 100+ variables, I would rather not visually check this.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 17:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-columns-are-missing-from-base-dataset/m-p/787144#M251442</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-22T17:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Which columns are missing from base dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-columns-are-missing-from-base-dataset/m-p/787157#M251453</link>
      <description>&lt;P&gt;Use the LISTVAR , or LISTALL, option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc compare data=sashelp.class(drop=age) compare=sashelp.class(drop=sex) 
  listvar
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;Listing of Variables in SASHELP.CLASS but not in SASHELP.CLASS

Variable  Type  Length

Sex       Char       1


Listing of Variables in SASHELP.CLASS but not in SASHELP.CLASS

Variable  Type  Length

Age       Num        8
&amp;#12;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Dec 2021 20:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-columns-are-missing-from-base-dataset/m-p/787157#M251453</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-12-22T20:00:07Z</dc:date>
    </item>
  </channel>
</rss>

