<?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 Matching value in two different tables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Matching-value-in-two-different-tables/m-p/334831#M75650</link>
    <description>&lt;P&gt;I have two tables 1 and 2. Table 1 contains lenfol's values and it's matching Survival Distribution Function Estimate's values. In table 2, I want to add a column which store Survival Distribution Function Estimate's values which match lenfol's values in table 1. Can somebody point me in the way how I can set that up? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7387iE496EC282609B458/image-size/medium?v=1.0&amp;amp;px=-1" alt="table1.PNG" title="table1.PNG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7389iFCBEE20059507AB6/image-size/original?v=1.0&amp;amp;px=-1" alt="table2.PNG" title="table2.PNG" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2017 03:27:24 GMT</pubDate>
    <dc:creator>ShinCrayons</dc:creator>
    <dc:date>2017-02-22T03:27:24Z</dc:date>
    <item>
      <title>Matching value in two different tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matching-value-in-two-different-tables/m-p/334831#M75650</link>
      <description>&lt;P&gt;I have two tables 1 and 2. Table 1 contains lenfol's values and it's matching Survival Distribution Function Estimate's values. In table 2, I want to add a column which store Survival Distribution Function Estimate's values which match lenfol's values in table 1. Can somebody point me in the way how I can set that up? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7387iE496EC282609B458/image-size/medium?v=1.0&amp;amp;px=-1" alt="table1.PNG" title="table1.PNG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7389iFCBEE20059507AB6/image-size/original?v=1.0&amp;amp;px=-1" alt="table2.PNG" title="table2.PNG" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 03:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matching-value-in-two-different-tables/m-p/334831#M75650</guid>
      <dc:creator>ShinCrayons</dc:creator>
      <dc:date>2017-02-22T03:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Matching value in two different tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matching-value-in-two-different-tables/m-p/334838#M75652</link>
      <description>&lt;P&gt;If you can put your data into csv files and attach them, it should be pretty straight forward…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could write up code which'd probably work, but it could quite possibly not work too!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 03:29:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matching-value-in-two-different-tables/m-p/334838#M75652</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-02-22T03:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Matching value in two different tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matching-value-in-two-different-tables/m-p/334849#M75656</link>
      <description>&lt;P&gt;Posting sample data slong with your question makes it a lot easier to solve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what you are looking for is probably something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
   create table yourtable as
   select a.*
         ,b.Survival_Distribution
   from table2 as a left join table1 as b
   on a.lenfol = b.lenfol;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Feb 2017 07:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matching-value-in-two-different-tables/m-p/334849#M75656</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-02-22T07:32:34Z</dc:date>
    </item>
  </channel>
</rss>

