<?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: Working only on updated observations. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-only-on-updated-observations/m-p/390146#M25220</link>
    <description>&lt;P&gt;How would Oracle or&amp;nbsp;SAS knows which are the updated observations?&lt;/P&gt;&lt;P&gt;isn't&amp;nbsp;It only depend on date&amp;nbsp;variable?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I don't&amp;nbsp;know which observations will be updated.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2017 08:42:07 GMT</pubDate>
    <dc:creator>india2016</dc:creator>
    <dc:date>2017-08-23T08:42:07Z</dc:date>
    <item>
      <title>Working only on updated observations.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-only-on-updated-observations/m-p/390123#M25213</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have one query, I am working on observations which are automatically updated in the Oracle database (obs will be updated&amp;nbsp;in only one table and that is used in ETL) And then runs ETL on that data-set at the specific time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already made ETL which runs at night which takes two hours. now I want to change&amp;nbsp;in &amp;nbsp;ETL which runs only on newly updated Observations from last used data and give final output.&lt;/P&gt;&lt;P&gt;coz I have to save time by working only on those observations which are updated instead of processing the whole observations.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;ETL runs at 2 AM&lt;BR /&gt;and ends at 4 AM&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;now if I am running ETL manually at 3 PM then this ETL only works on Updated observations(i.e. only on 2 AM to 3 PM data and gives output. )&lt;/P&gt;&lt;P&gt;..What should I do for this task.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 06:22:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-only-on-updated-observations/m-p/390123#M25213</guid>
      <dc:creator>india2016</dc:creator>
      <dc:date>2017-08-23T06:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Working only on updated observations.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-only-on-updated-observations/m-p/390142#M25219</link>
      <description>&lt;P&gt;Well, not sure how you would go about this in ETL as don't use it, however what I can say is this. &amp;nbsp;Oracle normally has a system field for last date/time of change. &amp;nbsp;You should be able to use this in the SQL you use to extract the data, so its just a matter of putting a where on your SQL to take records only where datetime of last is after your given point:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  connect to oracle...;
  select * from connection to oracle (
    select...
    from...
    where  LASTCHGTS &amp;gt;= "01FEB2017T12:00"dt);
  disconnect from oracle;
quit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 08:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-only-on-updated-observations/m-p/390142#M25219</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-23T08:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Working only on updated observations.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-only-on-updated-observations/m-p/390146#M25220</link>
      <description>&lt;P&gt;How would Oracle or&amp;nbsp;SAS knows which are the updated observations?&lt;/P&gt;&lt;P&gt;isn't&amp;nbsp;It only depend on date&amp;nbsp;variable?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I don't&amp;nbsp;know which observations will be updated.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 08:42:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-only-on-updated-observations/m-p/390146#M25220</guid>
      <dc:creator>india2016</dc:creator>
      <dc:date>2017-08-23T08:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Working only on updated observations.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-only-on-updated-observations/m-p/390151#M25221</link>
      <description>&lt;P&gt;As I said above, Oracle generates a date/time stamp on data when something changes in the data row. &amp;nbsp;You query against that date/time to get rows which have changed in the timepoint your are interested. &amp;nbsp;At least Oracle Clinical does anyways. &amp;nbsp;I would ask your Oracle Administrator to provide you exact code to extract your data from your system with your requirements, as I have none of this information.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 08:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-only-on-updated-observations/m-p/390151#M25221</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-23T08:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Working only on updated observations.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-only-on-updated-observations/m-p/390190#M25228</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/123179"&gt;@india2016&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I'm not sure if Oracle always creates such a datestamp as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&amp;nbsp;wrote but it's certainly something which can be implemented in Oracle (i.e. using CDAC).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess you're not only interested in updated records but also in deleted and newly inserted ones.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a chat with your Oracle DBA on how to best implement for your requirement. May be everything is already set-up and ready for you, may be there are first some configuration changes on the Oracle side required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I would have designed your Oracle table then it would have a created date and an updated date column. Check your table if there is already something like that there. If it is then you need nothing else than implementing a control table where you maintain the last date you've run your ETL and pick-up all records with a more current date - and then update your control table with the most current date you've processed.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 12:13:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-only-on-updated-observations/m-p/390190#M25228</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-08-23T12:13:25Z</dc:date>
    </item>
  </channel>
</rss>

