<?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 about joining datasets in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139273#M37286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would you like to see in &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;the last year (i.e. from 201301 to 201312) for each PERMNO&lt;/SPAN&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 02:52:23 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2014-05-06T02:52:23Z</dc:date>
    <item>
      <title>problem about joining datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139264#M37277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attachments:&lt;/P&gt;&lt;P&gt;frame is a balanced frame, which is 24 firms (i.e. PERMNO) * 336months=8064 observations.&lt;/P&gt;&lt;P&gt;e1 is also about the same 24 firms but some of them do not have observations during the whole 336-month period, so it is not a balanced dataset.&lt;/P&gt;&lt;P&gt;e2 is only the monthly data for 324 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to let e1 and e2 join frame, because frame is a balanced frame and I want generate a whole balanced panel.&lt;/P&gt;&lt;P&gt;the unique linking variable should be PERMNOYm (when joining e1 and frame) or Ym(when joining e2 and frame).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me to do this, no matter merge or proc sql is used? I find some problems when I did it. Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 00:36:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139264#M37277</guid>
      <dc:creator>comeon2012</dc:creator>
      <dc:date>2014-03-11T00:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem about joining datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139265#M37278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sql;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;create table panel as&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select frame.*, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; DATEliq, PS_LEVEL, PS_INNOV, PS_VWF, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; RETX, vwretd, vwretx, ewretd, ewretx, sprtrn &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; frame natural left join &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; e2 left join &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; e1 on frame.PERMNOYm=e1.PERMNOYm&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;order by PERMNOYm;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 01:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139265#M37278</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-03-11T01:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem about joining datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139266#M37279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks PG&lt;/P&gt;&lt;P&gt;but when I did an experiment and tried to join frame and e1 (I just edited the code based on yours as follows), there is always an error (in bold) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table panel as&lt;/P&gt;&lt;P&gt;select frame.*,&lt;/P&gt;&lt;P&gt;&amp;nbsp; RETX, vwretd, vwretx, ewretd, ewretx, sprtrn&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp; frame natural left join&lt;/P&gt;&lt;P&gt;&amp;nbsp; e1 on frame.PERMNOYm=e1.PERMNOYm&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, (, ',', '.', ANSIMISS,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS, CROSS, EXCEPT, FULL, GROUP, HAVING, INNER, INTERSECT, JOIN, LEFT, NATURAL,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOMISS, ORDER, OUTER, RIGHT, UNION, WHERE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;order by PERMNOYm;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the problem? Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 10:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139266#M37279</guid>
      <dc:creator>comeon2012</dc:creator>
      <dc:date>2014-03-13T10:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem about joining datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139267#M37280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a natural join there should be no ON clause, because "natural" implies a join on all matching (name and type) columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 10:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139267#M37280</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-03-13T10:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem about joining datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139268#M37281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PG and KurtBremser,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help. One more question if you don't mind:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the order that SAS join these datasets? &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;frame natural left join&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; e2 and generate a temporary file, and this temporary file left join &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;e1 (on frame.PERMNOYm=e1.PERMNOYm)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Am I right? but why is the left hand side &lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;PERMNOYm&lt;/STRONG&gt; from &lt;STRONG style="font-family: inherit; font-style: inherit;"&gt; frame?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;Thank you.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 16:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139268#M37281</guid>
      <dc:creator>comeon2012</dc:creator>
      <dc:date>2014-03-13T16:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: problem about joining datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139269#M37282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without parentheses, joins are done from left to right, as you understood. In a left join, all records from the left side are kept, so it is better to use variables from the left side table to do further joins. Variables from the right side of a left join can be set to missing and thus cannot be joined-to further. &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 17:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139269#M37282</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-03-13T17:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem about joining datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139270#M37283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@PGStats&lt;/P&gt;&lt;P&gt;@KurtBremser&lt;/P&gt;&lt;P&gt;and other experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar to the example in my original post in this session, I am trying to join the following 4 datasets and form a new dataset reit_etf_panel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reit_etf_framel&lt;/P&gt;&lt;P&gt;liq&lt;/P&gt;&lt;P&gt;ff&lt;/P&gt;&lt;P&gt;reit_etf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;create table reit_etf_panel as&lt;/P&gt;&lt;P&gt;select reit_etf_framel.*,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATEliq, PS_LEVEL, PS_INNOV, PS_VWF,&lt;/P&gt;&lt;P&gt;&amp;nbsp; dateff, mktrf, smb, hml, rf, umd,&lt;/P&gt;&lt;P&gt;&amp;nbsp; datereit, SHRCD, SICCD, TICKER, COMNAM, SHRCLS, PERMCO, CUSIP, PRC, VOL, RET, SHROUT, ALTPRC, SPREAD, RETX, vwretd, vwretx, ewretd, ewretx, sprtrn&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp; reit_etf_framel natural left join&lt;/P&gt;&lt;P&gt;&amp;nbsp; liq natural left join&lt;/P&gt;&lt;P&gt;&amp;nbsp; ff left join&lt;/P&gt;&lt;P&gt;&amp;nbsp; reit_etf on reit_etf_framel.PERMNOYm=reit_etf.PERMNOYm&lt;/P&gt;&lt;P&gt;order by PERMNOYm;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything is ok but with one problem that, as you can see, in reit_etf_panel, from line 325 to 336 there are missing values for those variables from both ff and liq. Actually, the problem exists for the last year (i.e. from 201301 to 201312) for each PERMNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me to check what is the reason and how to deal with it? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 04:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139270#M37283</guid>
      <dc:creator>comeon2012</dc:creator>
      <dc:date>2014-05-05T04:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem about joining datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139271#M37284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you only want records where information is complete then remove the word &lt;STRONG&gt;left&lt;/STRONG&gt; from the query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;... from&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp; reit_etf_framel natural join&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp; liq natural join&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp; ff inner join&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp; reit_etf on reit_etf_framel.PERMNOYm=reit_etf.PERMNOYm ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P&gt;. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 16:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139271#M37284</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-05-05T16:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem about joining datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139272#M37285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply, but sorry that I might not say clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;reit_etf_framel&lt;/STRONG&gt;&lt;/SPAN&gt; is a balanced frame, which is 24 firms (i.e. PERMNO) * 336months=8064 observations.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;reit_etf is also about the same 24 firms but some of them do not have observations during the whole 336-month period, so it is not a balanced dataset.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;ff and liq is only the monthly data for 324 months.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;What I want is to let reit_etf, liq, and ff join reit_etf_framel, because&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;reit_etf_framel&lt;/SPAN&gt; is a balanced frame and I want to generate a whole balanced panel.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;the unique linking variable should be PERMNOYm (when joining reit_etf and reit_etf_framel) or Ym (when joining liq and ff to the other two).&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;The way you just mentioned can only generate a balanced dataset consisting only around 1900 observations, which is not what I want.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;Could you help me reconsider it? Your help will be highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 00:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139272#M37285</guid>
      <dc:creator>comeon2012</dc:creator>
      <dc:date>2014-05-06T00:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: problem about joining datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139273#M37286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would you like to see in &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;the last year (i.e. from 201301 to 201312) for each PERMNO&lt;/SPAN&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 02:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139273#M37286</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-05-06T02:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem about joining datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139274#M37287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should be information about the variables (such as &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;mktrf, smb, hml, rf, umd&lt;/SPAN&gt;) from datasets ff and liq &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;in &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;the last year (i.e. from 201301 to 201312) for each PERMNO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I need information about the variables from datasets ff and liq for &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;all available years&lt;/STRONG&gt;&lt;/SPAN&gt; for each &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;PERMNO&lt;/SPAN&gt;. Now the problem is that information about variables from datasets ff and liq for &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;the last year&lt;/STRONG&gt;&lt;/SPAN&gt; of each PERMNO is missing (for other years, there is no problem). I don't know why and reckon there might be some minor mistake during the joining process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 04:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-about-joining-datasets/m-p/139274#M37287</guid>
      <dc:creator>comeon2012</dc:creator>
      <dc:date>2014-05-06T04:55:55Z</dc:date>
    </item>
  </channel>
</rss>

