<?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: Problem with match merging 2 datasets in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-match-merging-2-datasets/m-p/160902#M41891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before merge both data sets should be sorted by symbol time. Sort WORK.COMBINED before merging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=WORK.COMBINED;&lt;/P&gt;&lt;P&gt;by symbol time;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 00:11:35 GMT</pubDate>
    <dc:creator>stat_sas</dc:creator>
    <dc:date>2014-09-26T00:11:35Z</dc:date>
    <item>
      <title>Problem with match merging 2 datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-match-merging-2-datasets/m-p/160901#M41890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CODE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data New;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge WORK.COMBINED _EXP2_.TRADES_22FEB2010;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by symbol time;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISSUE: want to merge two data sets so that there are unique entries for each time by symbol, such that at each "TIME" there is a row in each data set with 120 unique "SYMBOL".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: BY variables are not properly sorted on data set WORK.COMBINED.&lt;/P&gt;&lt;P&gt;time=57599970 symbol=MELI best_hft_bid=40.78 best_nonhft_bid=40.91 best_hft_ask=41.04&lt;/P&gt;&lt;P&gt;best_nonhft_ask=40.93 hft_bsize=1200 hft_asize=3100 nonhft_bsize=100 nonhft_asize=2839 date=22FEB2010&lt;/P&gt;&lt;P&gt;shares=50 buysell=B price=36.8300 type=NN FIRST.symbol=0 LAST.symbol=0 _ERROR_=1 _N_=505346&lt;/P&gt;&lt;P&gt;NOTE: MERGE statement has more than one data set with repeats of BY values.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: There were 29127 observations read from the data set WORK.COMBINED.&lt;/P&gt;&lt;P&gt;NOTE: There were 480364 observations read from the data set _EXP2_.TRADES_22FEB2010.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.NEW may be incomplete.&amp;nbsp; When this step was stopped there were 505345&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 15 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.NEW was not replaced because this step was stopped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 23:39:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-match-merging-2-datasets/m-p/160901#M41890</guid>
      <dc:creator>Aaron19</dc:creator>
      <dc:date>2014-09-25T23:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with match merging 2 datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-match-merging-2-datasets/m-p/160902#M41891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before merge both data sets should be sorted by symbol time. Sort WORK.COMBINED before merging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=WORK.COMBINED;&lt;/P&gt;&lt;P&gt;by symbol time;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 00:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-match-merging-2-datasets/m-p/160902#M41891</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-09-26T00:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with match merging 2 datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-match-merging-2-datasets/m-p/160903#M41892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sort each dataset before merge as the error indicates.&lt;/P&gt;&lt;P&gt;Or switch to a proc sql.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 00:11:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-match-merging-2-datasets/m-p/160903#M41892</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-09-26T00:11:42Z</dc:date>
    </item>
  </channel>
</rss>

