BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
VishantBhat
Fluorite | Level 6

Hi All,

Currently in our DWH we perform a complete extract of all data from the source tables in Staging and perform a SCD on it on a daily basis (I know this is what sucks). But I now want to extract just the changed records from the source table instead of extracting the entire data from the source and performing a complete refresh and re-build the whole DWH on a daily basis. My problem is that I don't have any TIMESTAMP on the source tables (mostly oracle tables) which give me any Idea of the change dates.

Can I perform a CDC on such a source which does not have a TIMESTAMP column on any of the source tables? I have never used a CDC transform before but was looking at DI studio General CDC, does this transform help in my case?

Any help on this would be helpful and appreciated.

Regards,

Vishant

PS: I am using SAS DI Studio v 4.7

1 ACCEPTED SOLUTION

Accepted Solutions
VishantBhat
Fluorite | Level 6

Added the SAS DI Studio transform code as Solution which was my SAS Global forum 2016 Presentation.

 

Regards,

Vishant

View solution in original post

3 REPLIES 3
LinusH
Tourmaline | Level 20

I haven't used the CDC transformations so this will be a bit theoretical.

DI Studio transformations generates code. It can't do magic. If you have no support in your source data for doing any clever CDC logic, I can't see that the transformations can help you.

Oracle is a capable database. It should be fairly easy to add a timestamp in your source table(s). The same goes for implementing a change table.

Data never sleeps
VishantBhat
Fluorite | Level 6

Hi Linus,

Don't we all wish for an ETL tool which can do magic between the Source and Target and give us the required solution Smiley Happy I just wanted to explore possibilities on CDC, but I guess there are none for my current requirements. Thanks for your answer though.

I might just go with a PROC COMPARE solution between the Source and current Staging datasets to do a CDC.

Or I will wait if someone else has any answer to this.

Regards,

Vishant

VishantBhat
Fluorite | Level 6

Added the SAS DI Studio transform code as Solution which was my SAS Global forum 2016 Presentation.

 

Regards,

Vishant

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1263 views
  • 1 like
  • 2 in conversation