<?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: SCD Type 2 Loader for Update/overwritten data (Type 1 Columns) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SCD-Type-2-Loader-for-Update-overwritten-data-Type-1-Columns/m-p/51882#M10918</link>
    <description>Hi V&lt;BR /&gt;
&lt;BR /&gt;
Have you tried to add your target field update_dt to  "Options/Additional Loader Options/Load time column"?&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
    <pubDate>Sat, 17 Jul 2010 10:42:46 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2010-07-17T10:42:46Z</dc:date>
    <item>
      <title>SCD Type 2 Loader for Update/overwritten data (Type 1 Columns)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SCD-Type-2-Loader-for-Update-overwritten-data-Type-1-Columns/m-p/51881#M10917</link>
      <description>Dear All,&lt;BR /&gt;
 &lt;BR /&gt;
This is regarding transformation object : SCD Type 2 Loader for Update/overwritten data (Type 1 Columns) in SAS Data Integration Studio 4.2.&lt;BR /&gt;
 &lt;BR /&gt;
Question:&lt;BR /&gt;
How to get  the date/time(sysdate) when  any records got Updated/overwritten by (Type 1 Columns) so that i can keep the time information into my update_dt field in my target table.&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
Please advise.&lt;BR /&gt;
&lt;BR /&gt;
Thank you.&lt;BR /&gt;
 &lt;BR /&gt;
Regards,&lt;BR /&gt;
V</description>
      <pubDate>Sat, 17 Jul 2010 07:49:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SCD-Type-2-Loader-for-Update-overwritten-data-Type-1-Columns/m-p/51881#M10917</guid>
      <dc:creator>vironica</dc:creator>
      <dc:date>2010-07-17T07:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: SCD Type 2 Loader for Update/overwritten data (Type 1 Columns)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SCD-Type-2-Loader-for-Update-overwritten-data-Type-1-Columns/m-p/51882#M10918</link>
      <description>Hi V&lt;BR /&gt;
&lt;BR /&gt;
Have you tried to add your target field update_dt to  "Options/Additional Loader Options/Load time column"?&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Sat, 17 Jul 2010 10:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SCD-Type-2-Loader-for-Update-overwritten-data-Type-1-Columns/m-p/51882#M10918</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-07-17T10:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: SCD Type 2 Loader for Update/overwritten data (Type 1 Columns)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SCD-Type-2-Loader-for-Update-overwritten-data-Type-1-Columns/m-p/51883#M10919</link>
      <description>Dear Patrick,&lt;BR /&gt;
&lt;BR /&gt;
Yes, great ... it works well for the updated records. &lt;BR /&gt;
&lt;BR /&gt;
If i also need to get the sysdate for new records inserted, how to get this information ? &lt;BR /&gt;
&lt;BR /&gt;
Please advise.&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
V

Message was edited by: vironica</description>
      <pubDate>Mon, 19 Jul 2010 01:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SCD-Type-2-Loader-for-Update-overwritten-data-Type-1-Columns/m-p/51883#M10919</guid>
      <dc:creator>vironica</dc:creator>
      <dc:date>2010-07-19T01:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: SCD Type 2 Loader for Update/overwritten data (Type 1 Columns)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SCD-Type-2-Loader-for-Update-overwritten-data-Type-1-Columns/m-p/51884#M10920</link>
      <description>Hi V&lt;BR /&gt;
&lt;BR /&gt;
Once you've defined your variable as "Load time column" the SCD2 loader will populate it for all cases (update, insert - SCD1, SCD2 and mixed loading).&lt;BR /&gt;
&lt;BR /&gt;
The value used to populate the "Load time column" is actually not &amp;amp;sysdate but a string based on &amp;amp;sysdate and &amp;amp;systime and stored in a macrovar with name &amp;amp;etls_loadtime.&lt;BR /&gt;
&lt;BR /&gt;
If you look into the generated code of the SCD2 loader you will find something like this: update_dt = input("&amp;amp;etls_loadtime", datetime20.);&lt;BR /&gt;
&lt;BR /&gt;
If your SAS coding level is good enough then it's worth taking the time and try to understand the generated code. It helps a lot to understand what's going on behind the scene if you have to debug a problem - and as some code parts are rather advanced there is also a lot to learn.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Mon, 19 Jul 2010 12:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SCD-Type-2-Loader-for-Update-overwritten-data-Type-1-Columns/m-p/51884#M10920</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-07-19T12:54:59Z</dc:date>
    </item>
  </channel>
</rss>

