<?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: 2 Tables - Need to update 1 with values from another in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/2-Tables-Need-to-update-1-with-values-from-another/m-p/684630#M207504</link>
    <description>&lt;P&gt;Here is an example. So Table1 is the daily list of records that can vary day to day. This example has 3 records (Cust1, Cust2, Cust3). I want to assign a value from Table2.CODES to Table1.CODES.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data table1;&lt;BR /&gt;Length CustID $5;&lt;BR /&gt;input CustID $ CODES; &lt;BR /&gt;datalines;&lt;BR /&gt;Cust1&lt;BR /&gt;Cust2&lt;BR /&gt;Cust3&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data table2;&lt;BR /&gt;input CODES; &lt;BR /&gt;cards;&lt;BR /&gt;123&lt;BR /&gt;456&lt;BR /&gt;789&lt;BR /&gt;101&lt;BR /&gt;111&lt;BR /&gt;121&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 14:30:26 GMT</pubDate>
    <dc:creator>Jyuen204</dc:creator>
    <dc:date>2020-09-17T14:30:26Z</dc:date>
    <item>
      <title>2 Tables - Need to update 1 with values from another</title>
      <link>https://communities.sas.com/t5/SAS-Programming/2-Tables-Need-to-update-1-with-values-from-another/m-p/684591#M207484</link>
      <description>&lt;P&gt;I have 2 tables&lt;BR /&gt;Table 1 has data that will get refreshed daily so 1 day could have 3 records, next day could have 5&lt;/P&gt;
&lt;P&gt;Table 2 has 250 static values&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to update Table 1 with a value for each row from Table 2. Table 2 has no matching value to Table 1. I just want to assign one of the values to each record in Table 1&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 13:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/2-Tables-Need-to-update-1-with-values-from-another/m-p/684591#M207484</guid>
      <dc:creator>Jyuen204</dc:creator>
      <dc:date>2020-09-17T13:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: 2 Tables - Need to update 1 with values from another</title>
      <link>https://communities.sas.com/t5/SAS-Programming/2-Tables-Need-to-update-1-with-values-from-another/m-p/684611#M207492</link>
      <description>&lt;P&gt;Can you give us a small example so we can see what you want?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 13:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/2-Tables-Need-to-update-1-with-values-from-another/m-p/684611#M207492</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-17T13:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: 2 Tables - Need to update 1 with values from another</title>
      <link>https://communities.sas.com/t5/SAS-Programming/2-Tables-Need-to-update-1-with-values-from-another/m-p/684623#M207500</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263957"&gt;@Jyuen204&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have 2 tables&lt;BR /&gt;Table 1 has data that will get refreshed daily so 1 day could have 3 records, next day could have 5&lt;/P&gt;
&lt;P&gt;Table 2 has 250 static values&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to update Table 1 with a value for each row from Table 2. Table 2 has no matching value to Table 1. I just want to assign one of the values to each record in Table 1&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you want some random value from table 2? Any value? Does it have to be the same or forced to be different on day 2 than on day 1?&lt;/P&gt;
&lt;P&gt;Does each row of set 1 get the same or do the values from table 2 have to be different?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might describe what the value of this added variable might have if there isn't a match and you don't seem to care what the value added might be.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 14:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/2-Tables-Need-to-update-1-with-values-from-another/m-p/684623#M207500</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-17T14:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: 2 Tables - Need to update 1 with values from another</title>
      <link>https://communities.sas.com/t5/SAS-Programming/2-Tables-Need-to-update-1-with-values-from-another/m-p/684630#M207504</link>
      <description>&lt;P&gt;Here is an example. So Table1 is the daily list of records that can vary day to day. This example has 3 records (Cust1, Cust2, Cust3). I want to assign a value from Table2.CODES to Table1.CODES.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data table1;&lt;BR /&gt;Length CustID $5;&lt;BR /&gt;input CustID $ CODES; &lt;BR /&gt;datalines;&lt;BR /&gt;Cust1&lt;BR /&gt;Cust2&lt;BR /&gt;Cust3&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data table2;&lt;BR /&gt;input CODES; &lt;BR /&gt;cards;&lt;BR /&gt;123&lt;BR /&gt;456&lt;BR /&gt;789&lt;BR /&gt;101&lt;BR /&gt;111&lt;BR /&gt;121&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 14:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/2-Tables-Need-to-update-1-with-values-from-another/m-p/684630#M207504</guid>
      <dc:creator>Jyuen204</dc:creator>
      <dc:date>2020-09-17T14:30:26Z</dc:date>
    </item>
  </channel>
</rss>

