<?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 Merge data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Merge-data/m-p/10862#M1125</link>
    <description>I need to merge data from the COMPUSTAT and CRSP (finance databases). The COMPUSTAT has data of firms from 1950 to now (I use annual version: annual data) and the CRSP has data of the stocks for firms in the COMPUSTAT from 1925 (monthly data).  &lt;BR /&gt;
&lt;BR /&gt;
I need data from 1925 to now. I merge two database using CUSIP (Committee on Uniform Securities Identification Procedures, a unique nine-character identification). &lt;BR /&gt;
&lt;BR /&gt;
Because of some requirments from data, i need to merge databases from 1950 to now first and need to merge back to the data of the CRSP from 1925 to &amp;lt;1950 &lt;BR /&gt;
&lt;BR /&gt;
For example, I merge compustat and crsp data from 1950 to 2008 and have a file called merged1950 (monthly data)&lt;BR /&gt;
&lt;BR /&gt;
I also have data of the CRSP from 1925 to 1949 called CRSP1925.&lt;BR /&gt;
&lt;BR /&gt;
Variables of the CRSP from merged1950 and CRSP1925 are the same.However, there is no data of the COMPUSTAT in CRSP1925. &lt;BR /&gt;
&lt;BR /&gt;
How can I merge two data, merged1950 and CRSP1925, to have a unique data with a name of finalmerge using only CUSIP.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your suggestion,</description>
    <pubDate>Mon, 02 Nov 2009 19:00:55 GMT</pubDate>
    <dc:creator>vxhong17</dc:creator>
    <dc:date>2009-11-02T19:00:55Z</dc:date>
    <item>
      <title>Merge data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merge-data/m-p/10862#M1125</link>
      <description>I need to merge data from the COMPUSTAT and CRSP (finance databases). The COMPUSTAT has data of firms from 1950 to now (I use annual version: annual data) and the CRSP has data of the stocks for firms in the COMPUSTAT from 1925 (monthly data).  &lt;BR /&gt;
&lt;BR /&gt;
I need data from 1925 to now. I merge two database using CUSIP (Committee on Uniform Securities Identification Procedures, a unique nine-character identification). &lt;BR /&gt;
&lt;BR /&gt;
Because of some requirments from data, i need to merge databases from 1950 to now first and need to merge back to the data of the CRSP from 1925 to &amp;lt;1950 &lt;BR /&gt;
&lt;BR /&gt;
For example, I merge compustat and crsp data from 1950 to 2008 and have a file called merged1950 (monthly data)&lt;BR /&gt;
&lt;BR /&gt;
I also have data of the CRSP from 1925 to 1949 called CRSP1925.&lt;BR /&gt;
&lt;BR /&gt;
Variables of the CRSP from merged1950 and CRSP1925 are the same.However, there is no data of the COMPUSTAT in CRSP1925. &lt;BR /&gt;
&lt;BR /&gt;
How can I merge two data, merged1950 and CRSP1925, to have a unique data with a name of finalmerge using only CUSIP.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your suggestion,</description>
      <pubDate>Mon, 02 Nov 2009 19:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merge-data/m-p/10862#M1125</guid>
      <dc:creator>vxhong17</dc:creator>
      <dc:date>2009-11-02T19:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merge-data/m-p/10863#M1126</link>
      <description>since these two dataset are disjoint, you only need to stick the two datasets together.&lt;BR /&gt;
&lt;BR /&gt;
DATA cuisp;&lt;BR /&gt;
SET crsp1925 merged1950;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
This assumes the variables with the same content are named the same.</description>
      <pubDate>Tue, 03 Nov 2009 01:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merge-data/m-p/10863#M1126</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-11-03T01:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merge-data/m-p/10864#M1127</link>
      <description>Doc@Duke   &lt;BR /&gt;
Thank you so much. &lt;BR /&gt;
&lt;BR /&gt;
I wonder it works..&lt;BR /&gt;
CRSP: 1925-2008&lt;BR /&gt;
COMPUSTAT: 1950-2008&lt;BR /&gt;
&lt;BR /&gt;
I merge CRSP and COMPUSTAT from 1950 to 2008 first and then merge the merged data back with CRSP 1925 to &amp;lt;1950. &lt;BR /&gt;
Number of variables in the merged data &amp;gt; &amp;gt; number of variables in the CRSP. I accept the missing data for the COMPUSTAT from 1925-&amp;lt;1950. &lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 03 Nov 2009 08:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merge-data/m-p/10864#M1127</guid>
      <dc:creator>vxhong17</dc:creator>
      <dc:date>2009-11-03T08:45:10Z</dc:date>
    </item>
  </channel>
</rss>

