<?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: creating and modifying the control table based on exact match in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/creating-and-modifying-the-control-table-based-on-exact-match/m-p/182728#M34789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just load the dataset as normal then do a proc sort nodupkey dupout=?&amp;nbsp; E.g. This would then give you a table with distinct rows and a table with the duplicates.&amp;nbsp; You can then post-process the duplicates to get your control dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 12:59:52 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-07-17T12:59:52Z</dc:date>
    <item>
      <title>creating and modifying the control table based on exact match</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-and-modifying-the-control-table-based-on-exact-match/m-p/182727#M34788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have source table, target table and control table.&lt;/P&gt;&lt;P&gt;In first run, my target table will be loaded completely, but in second run only new records should be loaded and duplicate records should be loaded to control table. How to implement that ?? Need some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source table run1&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;var1 &lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;var2&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;var3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Target table run1&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;var1 &lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;var2&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;var3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Control table run1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 390px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="70"&gt;Job_name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Status&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;var_List&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;No of rows&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Duplicates &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Sample&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Success&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;var1,var2,var3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;17-Jul-14&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in run2 Source is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;var1 &lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;var2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;var3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Target should be&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;var1 &lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;var2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;var3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Control table should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="390"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="70"&gt;Job_name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Status&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;var_List&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;No of rows&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Duplicates &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Sample&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Success&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;var1,var2,var3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;17-Jul-14&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Sample&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Success&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;var1,var2,var3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;17-Jul-14&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is highly appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 12:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-and-modifying-the-control-table-based-on-exact-match/m-p/182727#M34788</guid>
      <dc:creator>forumsguy</dc:creator>
      <dc:date>2014-07-17T12:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: creating and modifying the control table based on exact match</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-and-modifying-the-control-table-based-on-exact-match/m-p/182728#M34789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just load the dataset as normal then do a proc sort nodupkey dupout=?&amp;nbsp; E.g. This would then give you a table with distinct rows and a table with the duplicates.&amp;nbsp; You can then post-process the duplicates to get your control dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 12:59:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-and-modifying-the-control-table-based-on-exact-match/m-p/182728#M34789</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-17T12:59:52Z</dc:date>
    </item>
  </channel>
</rss>

