SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 47906: The target table might not update correctly when using the SCD Type 2 Loader transformation

DetailsHotfixAboutRate It

When you use the SCD Type 2 Loader transformation, records from the source table might not be added to the target table. This incorrect behavior might occur when a non-unique business key is used. The problem occurs due to an incorrect incrementation of the date_begin variable.

In order to increment the date_begin variable appropriately, change the Automatic generated code to User Written. In addition, locate the following code:

/* Generate the from date expression */ %let etls_begdate = DATETIME();

Change the preceding code as follows:

/* Generate the from date expression */ %let etls_begdate = %sysfunc(DATETIME());

Starting with SAS® Data Integration Studio 4.5 %sysfunc(DATETIME()) is used by default.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Data Integration StudioWindows Vista4.24.59.2 TS2M09.3 TS1M2
Windows Vista for x644.24.59.2 TS2M09.3 TS1M2
Microsoft® Windows® for x644.24.59.2 TS2M09.3 TS1M2
Microsoft Windows Server 2003 Datacenter Edition4.24.59.2 TS2M09.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition4.24.59.2 TS2M09.3 TS1M2
Microsoft Windows Server 2003 Standard Edition4.24.59.2 TS2M09.3 TS1M2
Microsoft Windows Server 2003 for x644.24.59.2 TS2M09.3 TS1M2
Microsoft Windows Server 2008 for x644.24.59.2 TS2M09.3 TS1M2
Microsoft Windows XP Professional4.24.59.2 TS2M09.3 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.