Hi,
Could you please help me anyone how to impliment generic CDC logic for any number of fields and any number of keys.
Thanks,
Bhargav
Generic CDC job that can be used across any file
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
In a nutshell, you will need following information to get started.
whether the file is delimited or fixed width. if delimited which all fields are to be considered as keys and which all to be used for comparison. if fixed width start and end position of key and data fields.
You will need a little bit of looping here to concatenate all key fields together in one variable and data field in another one as they are not fixed. So you have to be on DataStage 8.5 or higher. if you need you can join back the result to get actual records and mark them with change codes.
whether the file is delimited or fixed width. if delimited which all fields are to be considered as keys and which all to be used for comparison. if fixed width start and end position of key and data fields.
You will need a little bit of looping here to concatenate all key fields together in one variable and data field in another one as they are not fixed. So you have to be on DataStage 8.5 or higher. if you need you can join back the result to get actual records and mark them with change codes.
Priyadarshi Kunal
Genius may have its limitations, but stupidity is not thus handicapped.
Genius may have its limitations, but stupidity is not thus handicapped.
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI