how to prepare scd2 in abinitio

Answer Posted / anonymous

we can implement scd2 using the below scenario in abinitio:-
1. take 2 tables as your input first would be your today's file that is in0 second be your previous file that would be in1.
2. take the inner join of both the tables on the matching key say cust_id, and in the out port of the dml make it embedded and do the naming convention by adding the suffix _new for the today's file and _old for the prev day file data records so to make it easier to understand the data fields.
3. In the join components, unused 0 will give you inserted records(that would come from today's file), and unused 1(that would come from yesterday's file) will give you deleted records.
4. take a reformat connecting the join output port and check:
if ( _new != _old) (these are the suffix we have given in the dml output port coming from the join component), force error it from the reject port of reformat those will be your updated records and you will get the unchanged records from the output port of reformat.
5. combine all the inserted records from join unused 0, updated records from reject port of reformat and unchanged records from out port of reformat and load all of them into the delta table.

this would complete the scd type 2 execution in abinitio.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Given input file with single column having 1 2 2 4 3 .. Required output 1 2 2 4 4 4 4 3 3 3.. How?

532


What the difference between “look-up” file and “look is up” in abinitio?

830


How transaction file different from that of a sort file?

882


What is the use of the co> operating system in ab initio?

613


Suppose you find the term validation mentioned with a set of data, what does that simply represent?

578






What are the fundamental blocks of co> operating system of ab initio?

721


can any one help me now i am learning AB Inito but i don't have material and pdf's can any one provide pdf's to this mail id mohanraju0113@gmail.com thanks in advance...................................

1793


What happens when we provide null key to sort, merge and pbks in Abinitio ?

813


What is the difference between a scan component and a rollup component?

600


Can sorting and storing be done through single software or you need different for these approaches?

593


You can ask about different vector functions. How to use in abinitio graph?

5026


Have you used rollup component? Describe how.

656


difference between paramaters inputparameters,Local parameters, Formal parameters, Sand box parameters,Project parameters and export parameter?

2299


What is the difference between formal and export parameter? Export at what secenario we are going to use?

2136


What is a partition and what are the different types of partition components in abinitio?

758