<?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 tables in sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/merge-tables-in-sas/m-p/868567#M343122</link>
    <description>&lt;P&gt;Hello, I need your help, I have to create 2 tables, in the first one I have all the data of the insurance policies with the due payments, in the other I have the quotas that belong to the company to pay (percentages).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;when i apply&lt;BR /&gt;date db_pol;&lt;BR /&gt;merge db_polices_total (in=a) quota_share (in=b);&lt;BR /&gt;by catena;&lt;BR /&gt;if a;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;which works, but if I have 2 policies with the same number, only the first line is populated, the second one does not receive the corresponding quota.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2023 08:02:03 GMT</pubDate>
    <dc:creator>u57961979</dc:creator>
    <dc:date>2023-04-07T08:02:03Z</dc:date>
    <item>
      <title>merge tables in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merge-tables-in-sas/m-p/868567#M343122</link>
      <description>&lt;P&gt;Hello, I need your help, I have to create 2 tables, in the first one I have all the data of the insurance policies with the due payments, in the other I have the quotas that belong to the company to pay (percentages).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;when i apply&lt;BR /&gt;date db_pol;&lt;BR /&gt;merge db_polices_total (in=a) quota_share (in=b);&lt;BR /&gt;by catena;&lt;BR /&gt;if a;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;which works, but if I have 2 policies with the same number, only the first line is populated, the second one does not receive the corresponding quota.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 08:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merge-tables-in-sas/m-p/868567#M343122</guid>
      <dc:creator>u57961979</dc:creator>
      <dc:date>2023-04-07T08:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: merge tables in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merge-tables-in-sas/m-p/868578#M343125</link>
      <description>&lt;P&gt;First thing to check for:&amp;nbsp; does your db_policies_total data set already contain a percentages variable before the merge.&amp;nbsp; If that's the problem, you can get rid of it using:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;date db_pol;
merge db_polices_total (in=a drop=percentages) quota_share (in=b);
by catena;
if a;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Of course, I don't know&amp;nbsp; your variable names.&amp;nbsp; You would have to use the proper name that exists in your data.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 10:37:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merge-tables-in-sas/m-p/868578#M343125</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2023-04-07T10:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: merge tables in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merge-tables-in-sas/m-p/868628#M343146</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/370838"&gt;@u57961979&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello, I need your help, I have to create 2 tables, in the first one I have all the data of the insurance policies with the due payments, in the other I have the quotas that belong to the company to pay (percentages).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;when i apply&lt;BR /&gt;date db_pol;&lt;BR /&gt;merge db_polices_total (in=a) quota_share (in=b);&lt;BR /&gt;by catena;&lt;BR /&gt;if a;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;which works, but if I have 2 policies with the same number, only the first line is populated, the second one does not receive the corresponding quota.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which variable has the policy number? Do both data sets have multiple values of the same number?&lt;/P&gt;
&lt;P&gt;It may help to show us the LOG from running your code. Copy the log text including the code and all messages from that data step. On the forum open a text box with the &amp;lt;/&amp;gt; icon above the message window and paste the text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: you misspelled Data as Date above.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 15:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merge-tables-in-sas/m-p/868628#M343146</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-04-07T15:50:05Z</dc:date>
    </item>
  </channel>
</rss>

