Friends,
How to implement Type II Dimension using DS 7.1.
Note: No help to be taken from underlying DBMS.
Regards,
Abhijit
Type II Dimension Implementation Using DS 7.1
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 81
- Joined: Tue Aug 15, 2006 8:31 am
- Location: Zürich
- Contact:
Type II Dimension Implementation Using DS 7.1
Kind regards
Abhijit Gaikwad
Abhijit Gaikwad
Re: Type II Dimension Implementation Using DS 7.1
Same way you'd do it in any other version.
First step would be to document the logical steps involved, then implement them in a job. It doesn't take anything fancy, just 'normal' DataStage techniques... and not really all that hard to work out.
You might want to explain what this is supposed to mean. Your DBMS will obviously be involved in all this, but no need for triggers or procs or anything, if that's what you are worried about.
First step would be to document the logical steps involved, then implement them in a job. It doesn't take anything fancy, just 'normal' DataStage techniques... and not really all that hard to work out.
You might want to explain what this is supposed to mean. Your DBMS will obviously be involved in all this, but no need for triggers or procs or anything, if that's what you are worried about.
Abhijeet1980 wrote:Note: No help to be taken from underlying DBMS.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 3593
- Joined: Thu Jan 23, 2003 5:25 pm
- Location: Australia, Melbourne
- Contact:
They are on server edition, they would need to procrastinate and come up with a bundle of money to upgrade to enterprise edition. The tricky part is change data capture. You need to check to see if incoming rows supersede existing rows. You can either write a long statement in a transformer comparing every column or use the CRC32 function to encode and compare the entire row. Do a forum search for CRC32, there are threads on how to use it and a thread on possible glitches.
Certus Solutions
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn
-
- Participant
- Posts: 81
- Joined: Tue Aug 15, 2006 8:31 am
- Location: Zürich
- Contact:
Firstly CRC check will have to be taken care of by a custom function. As per my knowledge CDC part is not the part of the server edition and have to be taken separately.
Secondly how will i generate equential no's required or the surrogate key needed to implement the type II.
Chulett : Can you pls explain me how is it possible using normal datastage techniques.
Secondly how will i generate equential no's required or the surrogate key needed to implement the type II.
Chulett : Can you pls explain me how is it possible using normal datastage techniques.
Kind regards
Abhijit Gaikwad
Abhijit Gaikwad
You don't need a 'custom function' to use CRC32. And no, CDC is not part of the Server product, so you'll need to do CDD - which is where the CRC32 routine comes in. Search for it and you'll find plenty of discussions on the subject.
On the 'how do I do it' front - put some thought into it. What are the logical steps you would need to do? Lay it out for a single row. Once you do, you'll see that it's not that difficult to actually implement.
On the 'how do I do it' front - put some thought into it. What are the logical steps you would need to do? Lay it out for a single row. Once you do, you'll see that it's not that difficult to actually implement.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 3593
- Joined: Thu Jan 23, 2003 5:25 pm
- Location: Australia, Melbourne
- Contact:
I think in the current version of DataStage Server jobs you can find the CRC32 function on the right mouse click menu within a Transformer stage. It is now part of the standard DataStage install. Generating surrogate keys or sequence numbers is easy, just create a Stage Variable in your transformer and increment it for new rows. Pass in a starting value via a job parameter. You can also use the SDK surrogate key routines that should be in your routines folder.
Certus Solutions
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn