<?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: proc compare - show ID in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/proc-compare-show-ID/m-p/638815#M21614</link>
    <description>&lt;P&gt;Thank you! I was worried I was doing something wrong because of the warnings in the log about the duplicate IDs, but I guess I'll just ignore them since that's the way the data are structured.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 22:01:28 GMT</pubDate>
    <dc:creator>bkq32</dc:creator>
    <dc:date>2020-04-09T22:01:28Z</dc:date>
    <item>
      <title>proc compare - show ID</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-compare-show-ID/m-p/638806#M21610</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data bweight_old ( keep = patient_id weight--momage );
 format patient_id;
 set sashelp.bweight;
 if _N_ &amp;lt;= 6;
 if _N_ in ( 1, 2 ) then patient_id = "A1";
 if _N_ in ( 3, 4 ) then patient_id = "A2";
 if _N_ in ( 5, 6 ) then patient_id = "A3";
run;

data bweight_new;
 set bweight_old;
 if _N_ = 2 then weight = .;
 if _N_ = 3 then momage = .;
run;

proc compare base = bweight_old compare = bweight_new; 
 ods select CompareDifferences;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the proc compare output, is there a way for me to see which PATIENT_ID an observation corresponds to?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 21:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-compare-show-ID/m-p/638806#M21610</guid>
      <dc:creator>bkq32</dc:creator>
      <dc:date>2020-04-09T21:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare - show ID</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-compare-show-ID/m-p/638813#M21613</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc compare base = bweight_old compare = bweight_new; 
 ods select CompareDifferences;
 id patient_id;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Apr 2020 21:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-compare-show-ID/m-p/638813#M21613</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-04-09T21:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare - show ID</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-compare-show-ID/m-p/638815#M21614</link>
      <description>&lt;P&gt;Thank you! I was worried I was doing something wrong because of the warnings in the log about the duplicate IDs, but I guess I'll just ignore them since that's the way the data are structured.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 22:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-compare-show-ID/m-p/638815#M21614</guid>
      <dc:creator>bkq32</dc:creator>
      <dc:date>2020-04-09T22:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare - show ID</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-compare-show-ID/m-p/638832#M21615</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/288620"&gt;@bkq32&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you! I was worried I was doing something wrong because of the warnings in the log about the duplicate IDs, but I guess I'll just ignore them since that's the way the data are structured.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unless you are trying to detect an order difference between to data sets you may want to consider sorting both data sets by several variables and have all of those on the ID statement. Multiple variables on the ID require presorting.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 23:11:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-compare-show-ID/m-p/638832#M21615</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-09T23:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc compare - show ID</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-compare-show-ID/m-p/638833#M21616</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;.&amp;nbsp;If I'm understanding this correctly, I think I should be okay since I only have one ID and I'm just taking data set A and running a macro that outputs data set B with the outliers set to null, so the order of the rows should still be exactly the same between A and B.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 23:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-compare-show-ID/m-p/638833#M21616</guid>
      <dc:creator>bkq32</dc:creator>
      <dc:date>2020-04-09T23:19:37Z</dc:date>
    </item>
  </channel>
</rss>

