Generate multiple Checksum/SK in a generic job
Posted: Sun Feb 19, 2017 10:28 pm
Hi,
I have a requirement to use a generic job to read source file and load data into table.
Each time I have a new source file, the corresponding target may have different number of Checksum/Surrogate Key columns.
Example (Scenario 1):
---------------------------
Source --> File 1 (Col1, Col2, Col3, Col4)
Target --> Table1 (Col1, Col2, Col3, Col4, Checksum(Col1,Col2), Checksum(Col3,Col4))
Example (Scenario 2):
---------------------------
Source --> File 1 (Col1, Col2, Col3, Col4, Col5)
Target --> Table1 (Col1, Col2, Col3, Col4, Checksum(Col1,Col2), Checksum(Col3,Col4), Checksum(Col5))
So each time I receive a source, I have to generate different number of checksum column.
Is there any way I can achieve this using generic job like
(Source --> Generate different number of Checksums --> Target)
Thanks,
Rohit
I have a requirement to use a generic job to read source file and load data into table.
Each time I have a new source file, the corresponding target may have different number of Checksum/Surrogate Key columns.
Example (Scenario 1):
---------------------------
Source --> File 1 (Col1, Col2, Col3, Col4)
Target --> Table1 (Col1, Col2, Col3, Col4, Checksum(Col1,Col2), Checksum(Col3,Col4))
Example (Scenario 2):
---------------------------
Source --> File 1 (Col1, Col2, Col3, Col4, Col5)
Target --> Table1 (Col1, Col2, Col3, Col4, Checksum(Col1,Col2), Checksum(Col3,Col4), Checksum(Col5))
So each time I receive a source, I have to generate different number of checksum column.
Is there any way I can achieve this using generic job like
(Source --> Generate different number of Checksums --> Target)
Thanks,
Rohit