<?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: When I create a table with left join, only the column headings show.  (SAS 9.4) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/When-I-create-a-table-with-left-join-only-the-column-headings/m-p/446664#M112113</link>
    <description>&lt;P&gt;It means that the condition&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;gvkey= b.gvkey2 and a.datadate= b.datadate2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is never met. If you replace &lt;STRONG&gt;&lt;EM&gt;left join&lt;/EM&gt;&lt;/STRONG&gt; by &lt;STRONG&gt;&lt;EM&gt;inner join&lt;/EM&gt;&lt;/STRONG&gt;, the output table should be empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of many possible reasons for this would be that the dates have different&amp;nbsp;representations in both tables.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Mar 2018 03:27:57 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2018-03-19T03:27:57Z</dc:date>
    <item>
      <title>When I create a table with left join, only the column headings show.  (SAS 9.4)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-create-a-table-with-left-join-only-the-column-headings/m-p/446613#M112080</link>
      <description>&lt;P&gt;Here is my code below. It appears that the two files join but only the Column headings show from the second dataset. I'm also attaching a screen shot of the "joined" file. I'm using SAS 9.4.&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql undo_policy = none;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;create table FinalBharReg as select&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a.*, b.*&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;from fundaBETABhar a left join ControlsBhar b&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;on a.gvkey= b.gvkey2 and a.datadate= b.datadate2;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Mar 2018 20:15:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-create-a-table-with-left-join-only-the-column-headings/m-p/446613#M112080</guid>
      <dc:creator>manleygurl</dc:creator>
      <dc:date>2018-03-18T20:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: When I create a table with left join, only the column headings show.  (SAS 9.4)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-create-a-table-with-left-join-only-the-column-headings/m-p/446616#M112089</link>
      <description>&lt;P&gt;No screenshot was attached.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That usually happens when your join condition is wrong and you have no matches, so everything shows up as missing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the fields you're joining and see if they match exactly or if you need to change something. For example if its a character variable, are they both the same lengths.&lt;/P&gt;
&lt;P&gt;Also make sure to check the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36977"&gt;@manleygurl&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Here is my code below. It appears that the two files join but only the Column headings show from the second dataset. I'm also attaching a screen shot of the "joined" file. I'm using SAS 9.4.&amp;nbsp; Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sql undo_policy = none;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;create table FinalBharReg as select&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a.*, b.*&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;from fundaBETABhar a left join ControlsBhar b&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;on a.gvkey= b.gvkey2 and a.datadate= b.datadate2;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Mar 2018 20:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-create-a-table-with-left-join-only-the-column-headings/m-p/446616#M112089</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-18T20:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: When I create a table with left join, only the column headings show.  (SAS 9.4)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-create-a-table-with-left-join-only-the-column-headings/m-p/446664#M112113</link>
      <description>&lt;P&gt;It means that the condition&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;gvkey= b.gvkey2 and a.datadate= b.datadate2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is never met. If you replace &lt;STRONG&gt;&lt;EM&gt;left join&lt;/EM&gt;&lt;/STRONG&gt; by &lt;STRONG&gt;&lt;EM&gt;inner join&lt;/EM&gt;&lt;/STRONG&gt;, the output table should be empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of many possible reasons for this would be that the dates have different&amp;nbsp;representations in both tables.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 03:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-create-a-table-with-left-join-only-the-column-headings/m-p/446664#M112113</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-03-19T03:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: When I create a table with left join, only the column headings show.  (SAS 9.4)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-create-a-table-with-left-join-only-the-column-headings/m-p/446720#M112135</link>
      <description>&lt;P&gt;"Columns headings" meaning columns, or?&lt;/P&gt;
&lt;P&gt;If your tables have the same columns names, yes, they will overwrite (since you are using *) - but you should get a notification in the log if that's the case.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 11:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-create-a-table-with-left-join-only-the-column-headings/m-p/446720#M112135</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-03-19T11:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: When I create a table with left join, only the column headings show.  (SAS 9.4)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-create-a-table-with-left-join-only-the-column-headings/m-p/486774#M126709</link>
      <description>&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-create-a-table-with-left-join-only-the-column-headings/m-p/486774#M126709</guid>
      <dc:creator>manleygurl</dc:creator>
      <dc:date>2018-08-14T18:59:20Z</dc:date>
    </item>
  </channel>
</rss>

