<?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 left join in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/left-join/m-p/527682#M143913</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i join the below tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;APC-19477289 obs&lt;/P&gt;&lt;P&gt;IOTC-1057 nobs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table APC_1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as&lt;BR /&gt;select a.*, b.PROD_NAME&lt;BR /&gt;from APC as left join IOTC&amp;nbsp;as b&lt;BR /&gt;on a.INS_OP_CODE =b.INS_OP_CODE and a.TYPE_COVERAGE_CODE=b.TYPE_COV_CODE;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am getting the count of&amp;nbsp;36605480 obs in resultant dataset, i want APC count in my dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please help&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2019 11:31:07 GMT</pubDate>
    <dc:creator>sg_kr</dc:creator>
    <dc:date>2019-01-16T11:31:07Z</dc:date>
    <item>
      <title>left join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/left-join/m-p/527682#M143913</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i join the below tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;APC-19477289 obs&lt;/P&gt;&lt;P&gt;IOTC-1057 nobs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table APC_1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as&lt;BR /&gt;select a.*, b.PROD_NAME&lt;BR /&gt;from APC as left join IOTC&amp;nbsp;as b&lt;BR /&gt;on a.INS_OP_CODE =b.INS_OP_CODE and a.TYPE_COVERAGE_CODE=b.TYPE_COV_CODE;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am getting the count of&amp;nbsp;36605480 obs in resultant dataset, i want APC count in my dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please help&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 11:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/left-join/m-p/527682#M143913</guid>
      <dc:creator>sg_kr</dc:creator>
      <dc:date>2019-01-16T11:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: left join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/left-join/m-p/527684#M143914</link>
      <description>&lt;P&gt;Try this. In your posted code, you did not reference the table APC as a.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table APC_1 as
select a.*, b.PROD_NAME
from APC as a left join IOTC as b
on a.INS_OP_CODE =b.INS_OP_CODE and a.TYPE_COVERAGE_CODE=b.TYPE_COV_CODE;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Jan 2019 11:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/left-join/m-p/527684#M143914</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-01-16T11:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: left join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/left-join/m-p/527686#M143915</link>
      <description>&lt;P&gt;sorry its typo error.&lt;/P&gt;&lt;P&gt;its referred as a in the code.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 12:09:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/left-join/m-p/527686#M143915</guid>
      <dc:creator>sg_kr</dc:creator>
      <dc:date>2019-01-16T12:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: left join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/left-join/m-p/527687#M143916</link>
      <description>&lt;P&gt;Ok. Can you post your log please?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 12:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/left-join/m-p/527687#M143916</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-01-16T12:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: left join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/left-join/m-p/527693#M143918</link>
      <description>&lt;P&gt;You have multiple matches for your key variable pairs in IOTC, causing a multiplication.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do a&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=iotc out=test nodupkey;
by ins_op_code type_cov_code;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and look at the log.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 12:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/left-join/m-p/527693#M143918</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-01-16T12:55:19Z</dc:date>
    </item>
  </channel>
</rss>

