<?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: Problem with scd2 loader in DIS 4.3 in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131308#M1799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seeing some sample input data and result might help.&lt;/P&gt;&lt;P&gt;But maybe "and the input data set contains multiple records on the same business key" is the key :smileyalert: to your problem. SCD2 loader doesn't (unfortunately) check changes between records in the input data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Nov 2013 16:37:11 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2013-11-01T16:37:11Z</dc:date>
    <item>
      <title>Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131307#M1798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;Hi. I hope some can give me som help on the: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;I use the scd2 loader in DIS and it seems to work for me except on one thing.&amp;nbsp; Closed out rows get VALID_TO_DTTM equal to VALID_FROM_DTT on the same row. I expect it to be equal VALID_FROM_DTTM on the next row for the same bussiness key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whe the job runs, the target table is empty, and the input data set contains multiple records on the same bussiness key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;Greetings, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;Bjorn &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 14:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131307#M1798</guid>
      <dc:creator>bkv1958</dc:creator>
      <dc:date>2013-11-01T14:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131308#M1799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seeing some sample input data and result might help.&lt;/P&gt;&lt;P&gt;But maybe "and the input data set contains multiple records on the same business key" is the key :smileyalert: to your problem. SCD2 loader doesn't (unfortunately) check changes between records in the input data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 16:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131308#M1799</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-11-01T16:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131309#M1800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The business key must make up a primary (composite) key in your source data. You should not have multiple records per business key in one load. You also shouldn't have 2 loads with the same value for "valid_from_dttm".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A type 2 table is intended to store history. But what's the history of 2 records with the same business key loaded at the same time? The SCD Type 2 loader still loads such records but you don't have control over the order in which they get loaded (in a single load) and which record with duplicate business key will be the last and therefore the current one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"I expect it to be equal VALID_FROM_DTTM on the next row for the same bussiness key"&amp;nbsp; The way the loader works it's actually "VALID_FROM_DTTM minus 1 second".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 22:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131309#M1800</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-01T22:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131310#M1801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have multiple records on the same business key in the source data set. Seems like I cnnot use the scd2 loader.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 13:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131310#M1801</guid>
      <dc:creator>bkv1958</dc:creator>
      <dc:date>2013-11-04T13:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131311#M1802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Patrick, I do have multiple records with the same bussiness key in one load.&amp;nbsp; I cannot see how to avoid that. I do&amp;nbsp; not use datetime() to set valid_from_dttm, but a datetime field in the input record. Actually when the record was created/modified in the source system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 13:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131311#M1802</guid>
      <dc:creator>bkv1958</dc:creator>
      <dc:date>2013-11-04T13:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131312#M1803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, the type 2 loader does not compare values between records in the source, just the first from the source and the current (if any) in the target. If you want that to happen, you need to build that logic on your own prior in the flow to the loader.&lt;/P&gt;&lt;P&gt;Again, some sample input and output data would help, and the settings on Change Tracking tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 13:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131312#M1803</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-11-04T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131313#M1804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"I do&amp;nbsp; not use datetime() to set valid_from_dttm, but a datetime field in the input record. Actually when the record was created/modified in the source system."&lt;/P&gt;&lt;P&gt;That's not how the SCD Type 2 loader works. You need a constant value per load. If there are no intraday loads then I'm normally using a datetime value "beginning of the day" either derived from the date of the source data or based on datetime().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to add the SCD Type 2 loader to add duplicates in a sequence based on another field like your source system load datetime then you need to split up your source data and call the SCD2 loader multiple times. I then would in each iteration pass a value to valid_from_dttm which is the value from the last iteration plus 1 second.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 21:23:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131313#M1804</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-04T21:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131314#M1805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From my understanding about your problem, you want to close out records with a singular load for more than one record with the same business key. I had the same issue and the way i solved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On SCD Type 2 Loader. &lt;/P&gt;&lt;P&gt;Tab "Change Tracking":&lt;/P&gt;&lt;P&gt; - on VALID_FROM_DTTM put DATETIME() function;&lt;/P&gt;&lt;P&gt; - on VALID_TO_DTTM put a date wich seems adequate for you, like '01JAN5999:00:00:00'DT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab "Mappings":&lt;/P&gt;&lt;P&gt;- Map the column VALID_FROM_DTTM with the field from your input file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab "Options/SCD":&lt;/P&gt;&lt;P&gt;- Allow Multiple Updates per Day - "YES"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is usefull.&lt;/P&gt;&lt;P&gt;APPereira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 11:26:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131314#M1805</guid>
      <dc:creator>APPereira</dc:creator>
      <dc:date>2013-11-12T11:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131315#M1806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, everyone,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 13:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131315#M1806</guid>
      <dc:creator>bkv1958</dc:creator>
      <dc:date>2013-11-12T13:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131316#M1807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So for us to learn something: How did you solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also: If your question is answered could you please mark the responses with were helpful and - if any - the correct answer - and mark the thread as answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 23:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131316#M1807</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-12T23:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131317#M1808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would just add one additional step to the comments made by &lt;A __default_attr="823688" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;.&amp;nbsp; Before the SCDII loader in your extract transform ensure you are sorting the data under the order by tab so that the information is consistently sorted in the correct order to apply the changes to the SCD II.&amp;nbsp; This is important as many database engines do not guarantee the way data is read and presented in a non sorted data set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not done then your SCD II records may not be applied in the correct order causing the active record not to be the current record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 23:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131317#M1808</guid>
      <dc:creator>JohnHeaton</dc:creator>
      <dc:date>2013-11-12T23:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131318#M1809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does guarantee that the SCD2 loader maintains the sort order of the source (also in future releases). I still believe that loading duplicate business keys is not something the SCD2 loader is designed for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 01:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131318#M1809</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-13T01:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131319#M1810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SCDII loader does support multiple business keys.&amp;nbsp; The business key is designed to match records which are the same.&amp;nbsp; The detect changes is designed to determine if the attributes have changed and if so create a new record for the same business key.&amp;nbsp;&amp;nbsp;&amp;nbsp; When reading data from a database unless you use the order by syntax for SQL you are not guaranteed to retrieve the data in any particular order.&amp;nbsp; It will depend where the database starts to read the data from the disk.&amp;nbsp; So if you have multiple changes to data over a day, you need to specific an order by or sort to ensure the information is retrieve in the order the changes were applied. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario&lt;/P&gt;&lt;P&gt;I have a customer C1, they have an address.&amp;nbsp; We build a dimension to track customer address changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a day they may be multiple updated to the customer information.&amp;nbsp; The data you send to the data warehouse may have all the change records.&amp;nbsp; In this scenario you business key which is the customer key in the source will be duplicated.&amp;nbsp; The change columns of address will have different values.&amp;nbsp; When extracting the data if you order the data on change date then you will get the&amp;nbsp; chronological order records have changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting the Option Allow Multiple updates per day will allow the SCDII to process all the change records.&amp;nbsp; In this way you will receive multiple records within a load which have been end dated and are not the current record.&amp;nbsp;&amp;nbsp; If this is not set then then the SCDII will only load the initial update and ignore the rest of the updates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A lot of our data sets have multiple changes within a load period and thr SCDII supports it.&amp;nbsp; We even use the SCDII transform for SCDI dimensions as if we ever wish to change we can reconfigure the transform without rewriting the Job. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 02:14:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131319#M1810</guid>
      <dc:creator>JohnHeaton</dc:creator>
      <dc:date>2013-11-13T02:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131320#M1811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="822568" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What you describe works BUT this is undocumented behaviour and you have therefore zero guarantee that it won't change in the future.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The option "Allow Multiple updates per day" is meant for multiple intraday loads using DATE instead of DATETIME values. With date values you can't really expire more than one record with the same business key more than once a day. This option is in my understanding mainly there to deal nicely with cases where there are multiple rows with the same business key in source. If you examine the code generated you will see that only the first row of these multiples will get used.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="4529" alt="Capture.PNG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4529_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I also believe that there is an issue if you would run several loads with the same business key and valid_from with date values (not datetime).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I understand what you're doing and I can see in the generated code why this is working. My point is: It is nowhere mentioned in the documentation that the SCD 2 loader is designed for loading multiple rows with the same business key in one load. The loader is designed for dealing nicely with such cases but it doesn't give you any option to add additional sort columns to the business key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you will find in the generated code are things like "set work.etls_source; by &amp;lt;business key&amp;gt;;" What you would need to find in the code to be certain is "by &amp;lt;business key&amp;gt; &amp;lt;additional sort variables&amp;gt;;" - and for this you would need to be able to define these additional sort variables somewhere.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've used DIS4.6 to generate the code and found even a Proc Sort - even though I selected "no" in the option for sorting the source data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For what you're doing: Make sure that option SORTEQUALS is set. &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002253176.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002253176.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question is: Should you use an undocumented behaviour in a production implementation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 06:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131320#M1811</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-13T06:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131321#M1812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the information.&amp;nbsp; That is interesting.&amp;nbsp; I never really look at the code as I do not has a SAS programming background.&amp;nbsp; It seems we are getting around this behaviour using the extract transform and extracting the data sorted by the business key and the datetime column.&amp;nbsp; We are also not using a source column as an input to the start and end date of the record in the dimension.&amp;nbsp; These WHO columns which are date are maintained and managed by DIS 4.5 in our case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then selecting create a view on the Extract physical properties.&amp;nbsp; A PROC SQL statement is created which is ordered correctly ensuring the data into the SCD II transform is in the correct order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; create view work.W217J6G as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Agency_Resign_Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Business_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chnl_CD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chnl_LDesc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from &amp;amp;SYSLAST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; order by&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Business_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Agency_Resign_Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code seems stable.&amp;nbsp; With regards to using undocumented features from release to release, I guess it depends on the feature and how it affects the process.&amp;nbsp; We have isolated our SCD II Jobs in our ETL process to very simple jobs, i.e data is staged before the SCDII Job and then a wholesale replace of our dimension after the job.&amp;nbsp; This way if the functionality changes it is very isolated and once fixed all functionality down stream will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In situations like this I do not see much different between undocumented (not specifically stated features) capabilities and potential new features you would want to adopt in a new release.&amp;nbsp; Both will cause some rework and refinement of your ETL process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 06:31:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131321#M1812</guid>
      <dc:creator>JohnHeaton</dc:creator>
      <dc:date>2013-11-13T06:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131322#M1813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="822568" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;I wouldn't "jump" that much if this would just be an undocumented feature in the sense of a parameter or switch which is not documented. In your case it's more about what code the SCD 2 transformation generates which allows for your approach to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually don't believe that the code generation will change in the near future in a way that your approach won't work anymore. So it's more of a principal question about which I'm having a very strong opinion:&lt;/P&gt;&lt;P&gt;If something is not documented you can't use it for a production implementation. If you're using it anyway then you can't expect the vendor to support you should it fail in the future, so you're adding risk to what you're implementing. You need to clearly identify this risk and to communicate it to the application owner. If you're not doing this and something fails then I would blame the application designer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I totally understand the business reason for what you're doing and it's also much better from a performance perspective than splitting the source data set and loading it in several batches. Looking at the code generated I also believe it wouldn't be too hard to give us an option where we can define additional sort variables for loading duplicate business keys in one go. I'll create an idea for this. Vote for it if you agree. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 09:25:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131322#M1813</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-13T09:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131323#M1814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to mark helpfull answers, but next time I look at the thread they are not marked.&lt;/P&gt;&lt;P&gt;Also I cannot figure out how to set my question to &lt;EM&gt;Answered&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 13:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131323#M1814</guid>
      <dc:creator>bkv1958</dc:creator>
      <dc:date>2014-03-25T13:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131324#M1815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bkv1958, Typically, you are only allowed to mark one answer as correct. Since there are a number of "helpful" answers, it may not let you mark one as correct. Please tell which answer was most helpful, and I will mark it as "correct" on your behalf. Thanks! Anna-Marie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 14:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131324#M1815</guid>
      <dc:creator>anna_holland</dc:creator>
      <dc:date>2014-03-25T14:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scd2 loader in DIS 4.3</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131325#M1816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, please mark no. 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2014 17:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-scd2-loader-in-DIS-4-3/m-p/131325#M1816</guid>
      <dc:creator>bkv1958</dc:creator>
      <dc:date>2014-04-26T17:07:58Z</dc:date>
    </item>
  </channel>
</rss>

