<?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: Match data with different conditions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Match-data-with-different-conditions/m-p/492784#M129568</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to matched the rest observations (&lt;SPAN&gt;891201-140110)&lt;/SPAN&gt; in aa02 data set with bb data set. Because what I want to do is to match the two data sets with CUISP number, Ticker number and Company Names, I just finished matching with CUISP number, and only 140110 out of 891201 are matched, that is not a good match.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Sep 2018 19:41:35 GMT</pubDate>
    <dc:creator>Songchan</dc:creator>
    <dc:date>2018-09-05T19:41:35Z</dc:date>
    <item>
      <title>Match data with different conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-data-with-different-conditions/m-p/492753#M129546</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I matched two data sets using one condition (cusip number), now I'm going to match the lost matched observations with&amp;nbsp;another condition (ticker number) I don't know how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*merge by cusip*/&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table cc as&lt;BR /&gt;select a.*,b.*&lt;BR /&gt;from aa02 as a, bb as b&lt;BR /&gt;where a.COL3=b.cusip and -5&amp;lt;=a.tr-b.datadate&amp;lt;370;&lt;BR /&gt;quit;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;aa02 (891201 observations) is one dataset, bb is another one, and there are only 140110 observations matched.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 18:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-data-with-different-conditions/m-p/492753#M129546</guid>
      <dc:creator>Songchan</dc:creator>
      <dc:date>2018-09-05T18:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Match data with different conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-data-with-different-conditions/m-p/492776#M129564</link>
      <description>&lt;P&gt;So you want to match the&amp;nbsp;&lt;SPAN&gt;891201-140110&amp;nbsp;non matched observations with observations from a third data set or?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If not, please be more specific.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 19:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-data-with-different-conditions/m-p/492776#M129564</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-09-05T19:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Match data with different conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-data-with-different-conditions/m-p/492784#M129568</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to matched the rest observations (&lt;SPAN&gt;891201-140110)&lt;/SPAN&gt; in aa02 data set with bb data set. Because what I want to do is to match the two data sets with CUISP number, Ticker number and Company Names, I just finished matching with CUISP number, and only 140110 out of 891201 are matched, that is not a good match.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 19:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-data-with-different-conditions/m-p/492784#M129568</guid>
      <dc:creator>Songchan</dc:creator>
      <dc:date>2018-09-05T19:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Match data with different conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-data-with-different-conditions/m-p/492878#M129623</link>
      <description>&lt;P&gt;"&lt;EM&gt;I want to do is to match the two data sets with CUISP number, Ticker number and Company Names&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that doesn't (shouldn't) require separate steps. It can all be done in one operation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What makes you expect to get more matches?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 04:46:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-data-with-different-conditions/m-p/492878#M129623</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-09-06T04:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Match data with different conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-data-with-different-conditions/m-p/493026#M129679</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two data sets, one is monthly data, the other is annual data, I need to combine these two to ensure that each company has its both monthly and annual data. The first condition is CUSIP number, and the rest observations of monthly data match annual data under the second condition of same ticker number, there also should be some observations not matched,&amp;nbsp; so the last condition is company name.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 14:17:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-data-with-different-conditions/m-p/493026#M129679</guid>
      <dc:creator>Songchan</dc:creator>
      <dc:date>2018-09-06T14:17:03Z</dc:date>
    </item>
  </channel>
</rss>

