<?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: Enterprise Guide - Slowly changing dimension? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Enterprise-Guide-Slowly-changing-dimension/m-p/559569#M10356</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15809"&gt;@RB1Kenobi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With SCD2 you never remove records but you expire them.&lt;/P&gt;
&lt;P&gt;NEW records:&amp;nbsp; &amp;nbsp;INSERT&lt;/P&gt;
&lt;P&gt;CHANGED records: UPDATE of end date column of latest already existing version, INSERT of new version&lt;/P&gt;
&lt;P&gt;DELETE:&amp;nbsp; &amp;nbsp; UPDATE of end date column of latest already existing version&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS DI Studio (the SAS ETL tool) provides an out of the box transformation for loading SCD2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the SAS EG client: You need to write your own SAS code for this. If you don't get the deltas from source (Inserts, Updates and Deletes) then you need first to work this out via code by comparing source with target, After that it's either an INSERT for new and changed records (using PROC APPEND) and an UPDATE for expired (deleted) or changed records (SQL UPDATE).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively coding using a SAS Datastep MODIFY statement is also an option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 07:08:49 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2019-05-17T07:08:49Z</dc:date>
    <item>
      <title>Enterprise Guide - Slowly changing dimension?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Enterprise-Guide-Slowly-changing-dimension/m-p/558620#M10135</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I'm creating a master data table which will then be updated daily to add, update, and remove records.&amp;nbsp; &amp;nbsp; Has anyone achieved slowly changing dimension type 2 load approach using Enterpise Guide?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 13:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Enterprise-Guide-Slowly-changing-dimension/m-p/558620#M10135</guid>
      <dc:creator>RB1Kenobi</dc:creator>
      <dc:date>2019-05-14T13:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide - Slowly changing dimension?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Enterprise-Guide-Slowly-changing-dimension/m-p/559569#M10356</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15809"&gt;@RB1Kenobi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With SCD2 you never remove records but you expire them.&lt;/P&gt;
&lt;P&gt;NEW records:&amp;nbsp; &amp;nbsp;INSERT&lt;/P&gt;
&lt;P&gt;CHANGED records: UPDATE of end date column of latest already existing version, INSERT of new version&lt;/P&gt;
&lt;P&gt;DELETE:&amp;nbsp; &amp;nbsp; UPDATE of end date column of latest already existing version&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS DI Studio (the SAS ETL tool) provides an out of the box transformation for loading SCD2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the SAS EG client: You need to write your own SAS code for this. If you don't get the deltas from source (Inserts, Updates and Deletes) then you need first to work this out via code by comparing source with target, After that it's either an INSERT for new and changed records (using PROC APPEND) and an UPDATE for expired (deleted) or changed records (SQL UPDATE).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively coding using a SAS Datastep MODIFY statement is also an option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 07:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Enterprise-Guide-Slowly-changing-dimension/m-p/559569#M10356</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-05-17T07:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide - Slowly changing dimension?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Enterprise-Guide-Slowly-changing-dimension/m-p/643781#M21938</link>
      <description>Thank you for your assistance.   The end result was as per your reply.</description>
      <pubDate>Wed, 29 Apr 2020 06:48:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Enterprise-Guide-Slowly-changing-dimension/m-p/643781#M21938</guid>
      <dc:creator>RB1Kenobi</dc:creator>
      <dc:date>2020-04-29T06:48:36Z</dc:date>
    </item>
  </channel>
</rss>

