<?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: load incremental data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/260027#M50392</link>
    <description>&lt;P&gt;So, your large master table&amp;nbsp;is in SAS!?&lt;/P&gt;
&lt;P&gt;First, make sure that you have indexed the PK for that table. If not already there, consider moving to a SPDE library - since it has much more efficient index maintenance.&lt;/P&gt;
&lt;P&gt;Then which method is bets, depends on the data, and your preferences.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Already mentioned is using a data step (using modify by).&lt;/P&gt;
&lt;P&gt;Another option&amp;nbsp;is to query the master table first (something&amp;nbsp;like key not in(select * from master) - but perhaps it may hard for SAS to optimize that query.&lt;/P&gt;
&lt;P&gt;You may&amp;nbsp;need to try some&amp;nbsp;different techniques before settling for a solution.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2016 11:15:01 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-03-30T11:15:01Z</dc:date>
    <item>
      <title>load incremental data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/259982#M50373</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to load incremental data because the size of dataset is so large and it is taking more time to execute.&lt;/P&gt;&lt;P&gt;I want to load only updated records.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 07:48:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/259982#M50373</guid>
      <dc:creator>Shantaram</dc:creator>
      <dc:date>2016-03-30T07:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: load incremental data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/259983#M50374</link>
      <description>&lt;P&gt;Please give us some more information:&lt;/P&gt;
&lt;P&gt;- where does the data come from&lt;/P&gt;
&lt;P&gt;- how is your database stored (native SAS table, or in a RDBMS)&lt;/P&gt;
&lt;P&gt;- do you only get new records or&lt;/P&gt;
&lt;P&gt;- do you need to update existing records that are already in your database&lt;/P&gt;
&lt;P&gt;- what are the current sizes, and what are your time constraints&lt;/P&gt;
&lt;P&gt;- what does your SAS environment look like (operating system, CPU power, storage)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 07:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/259983#M50374</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-30T07:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: load incremental data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/259984#M50375</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you provide more information, i.e. what OS, what software you have available etc. Do you have existing data which needs to be updated - if so look at the datastep update syntax:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000202975.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000202975.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If its new data to be added, then use proc append:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000070936.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000070936.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show what it is your doing, if your data is big, then any operation is going to take time - the append doesn't create a new file, just adds rows to the end, so processing and resource wise this is probably the quickest, however it doesn't update any data already existing so depends on your needs.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 07:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/259984#M50375</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-30T07:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: load incremental data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/259987#M50377</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-database is oracle tables from oracle library &amp;nbsp;and some sas data sets from sas library.&lt;/P&gt;&lt;P&gt;-want only new records.&lt;/P&gt;&lt;P&gt;-data size aprox 2cr.&lt;/P&gt;&lt;P&gt;-working on windows environment&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 08:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/259987#M50377</guid>
      <dc:creator>Shantaram</dc:creator>
      <dc:date>2016-03-30T08:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: load incremental data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/259996#M50381</link>
      <description>&lt;P&gt;So you are updating a table in Oracle from different sources, but use SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you only want to add records, &lt;FONT face="courier new,courier"&gt;proc append&lt;/FONT&gt; will be your best option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess your Oracle resides on a dedicated server, so network performance will be a major influence.&lt;/P&gt;
&lt;P&gt;Other factors are record (observation) size. 20 million of 100 bytes each is not so much, 20 million of 5k bytes each is a lot if it has to go over the network.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 08:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/259996#M50381</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-30T08:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: load incremental data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/260003#M50383</link>
      <description>&lt;P&gt;Sorce table avalable in oracle and need to load it into sas dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;if i want to add updated records as well as new records then what should i do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 08:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/260003#M50383</guid>
      <dc:creator>Shantaram</dc:creator>
      <dc:date>2016-03-30T08:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: load incremental data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/260015#M50388</link>
      <description>&lt;P&gt;Slowly the picture is getting clearer &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, I'd try to identify the records to update on the Oracle side and perform an unload of specific records that need updating into a SAS dataset. This reduces the amount of data that needs to be transferred out of the Oracle database.&lt;/P&gt;
&lt;P&gt;Then run a &lt;FONT face="courier new,courier"&gt;proc sql&lt;/FONT&gt; with &lt;FONT face="courier new,courier"&gt;update&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 10:05:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/260015#M50388</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-30T10:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: load incremental data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/260017#M50389</link>
      <description>&lt;P&gt;After performing a test here with &lt;FONT face="courier new,courier"&gt;proc sql&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;update&lt;/FONT&gt;, I strongly recommend using a &lt;FONT face="courier new,courier"&gt;data&lt;/FONT&gt; step &lt;FONT face="courier new,courier"&gt;update&lt;/FONT&gt;. Needs more space, but is faster by orders of magnitude.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 10:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/260017#M50389</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-30T10:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: load incremental data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/260027#M50392</link>
      <description>&lt;P&gt;So, your large master table&amp;nbsp;is in SAS!?&lt;/P&gt;
&lt;P&gt;First, make sure that you have indexed the PK for that table. If not already there, consider moving to a SPDE library - since it has much more efficient index maintenance.&lt;/P&gt;
&lt;P&gt;Then which method is bets, depends on the data, and your preferences.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Already mentioned is using a data step (using modify by).&lt;/P&gt;
&lt;P&gt;Another option&amp;nbsp;is to query the master table first (something&amp;nbsp;like key not in(select * from master) - but perhaps it may hard for SAS to optimize that query.&lt;/P&gt;
&lt;P&gt;You may&amp;nbsp;need to try some&amp;nbsp;different techniques before settling for a solution.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 11:15:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-incremental-data/m-p/260027#M50392</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-30T11:15:01Z</dc:date>
    </item>
  </channel>
</rss>

