<?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: compare the variable name and find the errors if any in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/compare-the-variable-name-and-find-the-errors-if-any/m-p/696315#M25252</link>
    <description>Have you looked into PROC COMPARE?</description>
    <pubDate>Tue, 03 Nov 2020 20:07:33 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-11-03T20:07:33Z</dc:date>
    <item>
      <title>compare the variable name and find the errors if any</title>
      <link>https://communities.sas.com/t5/New-SAS-User/compare-the-variable-name-and-find-the-errors-if-any/m-p/696304#M25250</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a variable name format&lt;/P&gt;&lt;P&gt;Chicago Michigan Boston Ohio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New dataset has the following variable name:&lt;/P&gt;&lt;P&gt;Chicag Michigan Bostor Ohid&lt;/P&gt;&lt;P&gt;I need to compare this dataset with the above formatted variable name and report the errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I code this one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 19:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/compare-the-variable-name-and-find-the-errors-if-any/m-p/696304#M25250</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2020-11-03T19:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: compare the variable name and find the errors if any</title>
      <link>https://communities.sas.com/t5/New-SAS-User/compare-the-variable-name-and-find-the-errors-if-any/m-p/696308#M25251</link>
      <description>&lt;P&gt;Yes, you can.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use DICTIONARY.COLUMNS (SQL) or SASHELP.VCOLUMN (data step) to compare the variables in both datasets.&lt;/P&gt;
&lt;P&gt;e.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data check;
merge
  sashelp.vcolumn (in=d1 where=(libname="LIB1" and memname="DS1"))
  sashelp.vcolumn (in=d2 where=(libname="LIB2" and memname="DS2"))
;
by name;
if d1 and d2 then check = "both";
else if d1 then check = "d1";
else check = "d2";
keep name check;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Nov 2020 19:43:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/compare-the-variable-name-and-find-the-errors-if-any/m-p/696308#M25251</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-03T19:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: compare the variable name and find the errors if any</title>
      <link>https://communities.sas.com/t5/New-SAS-User/compare-the-variable-name-and-find-the-errors-if-any/m-p/696315#M25252</link>
      <description>Have you looked into PROC COMPARE?</description>
      <pubDate>Tue, 03 Nov 2020 20:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/compare-the-variable-name-and-find-the-errors-if-any/m-p/696315#M25252</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-03T20:07:33Z</dc:date>
    </item>
  </channel>
</rss>

