<?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: comparison of variable across data sets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/comparison-of-variable-across-data-sets/m-p/326440#M271516</link>
    <description>Chen&lt;BR /&gt;Have a look at examples of PROC SQL queries in the online doc&lt;BR /&gt;That makes the a. and b. prefix notation available</description>
    <pubDate>Fri, 20 Jan 2017 22:35:46 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2017-01-20T22:35:46Z</dc:date>
    <item>
      <title>comparison of variable across data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/comparison-of-variable-across-data-sets/m-p/326161#M271514</link>
      <description>&lt;P&gt;Hi SAS community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue regarding coding, I hope you can help me with.&lt;/P&gt;&lt;P&gt;I have two data sets, a and b, containing three variables, hospitals, patient_id and date. For each patient_id there are&amp;nbsp;multiple dates, and due to some definitions regarding what classifies as a new entry, I need to weed out excessive observations, which translated, code-wise corresponds to something like:&lt;/P&gt;&lt;P&gt;data=a;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if patient_id in a = patient_id in b and&amp;nbsp;dates in b-30 days&amp;lt;date in a &amp;lt;dates in b+30 days then same=1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Else same=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Basically, what I am have trouble with referencing across data sets, since a and b should be kept separated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Due to the information being sensitive, I cannot provide any concrete examples of data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope you guys can help me out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chen&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 01:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/comparison-of-variable-across-data-sets/m-p/326161#M271514</guid>
      <dc:creator>chen70</dc:creator>
      <dc:date>2017-01-20T01:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: comparison of variable across data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/comparison-of-variable-across-data-sets/m-p/326164#M271515</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124399"&gt;@chen70&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi SAS community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Due to the information being sensitive, I cannot provide any concrete examples of data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The data needs to be reflective of your situation, not actual data. You can make fake data, include at least one example of the different situations you'll encounter, ie no matches in either data set, duplicates, multiple duplicates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise search on here for the 30 day readmission problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 02:14:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/comparison-of-variable-across-data-sets/m-p/326164#M271515</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-20T02:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: comparison of variable across data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/comparison-of-variable-across-data-sets/m-p/326440#M271516</link>
      <description>Chen&lt;BR /&gt;Have a look at examples of PROC SQL queries in the online doc&lt;BR /&gt;That makes the a. and b. prefix notation available</description>
      <pubDate>Fri, 20 Jan 2017 22:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/comparison-of-variable-across-data-sets/m-p/326440#M271516</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2017-01-20T22:35:46Z</dc:date>
    </item>
  </channel>
</rss>

