Data getting added in CDC stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Data getting added in CDC stage

Post by Nagaraj »

The Data from CDC stage is getting added each and everytime i run the job,

Note: I am just comparing the same datasets i.e same data.

The Key column i am using for cdc is a varchar column and i have trimmed on both the columns before doing cdc....not sure what else is missing. Yes also i have done Hash partitioning on the same key and sorted it remove dups if there are any.
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

Any ideas any suggestions......?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Suggest... patience.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

Properties info..

1. Drop output for copy= True
2. And the rest all are set to FALSE.
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Post by betterthanever »

[quote="Nagaraj"]Properties info..

1. Drop output for copy= True
2. And the rest all are set to FALSE.[/quote]

please be more specific what do you mean by data getting added??
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

i have 100 records in before dataset and 100 records in after dataset and from CDC i am getting 200 records......

Note: both before and after datasets are same.
girija
Participant
Posts: 89
Joined: Fri Mar 24, 2006 1:51 pm
Location: Hartford

Post by girija »

1. Check whether you have same number of columns in your before and after link.

2. Verify the key column and change columns, and see whether you add any surrogate or generated column in your before and after column list or not.
girija
Participant
Posts: 89
Joined: Fri Mar 24, 2006 1:51 pm
Location: Hartford

Post by girija »

1. Check whether you have same number of columns in your before and after link.

2. Verify the key column and change columns, and see whether you add any surrogate or generated column in your before and after column list or not.

3. Check whether you are doing any kind of transformation before loading into your target table.
girija
Participant
Posts: 89
Joined: Fri Mar 24, 2006 1:51 pm
Location: Hartford

Post by girija »

1. Check whether you have same number of columns in your before and after link.

2. Verify the key column and change columns, and see whether you add any surrogate or generated column in your before and after column list or not.

3. Check whether you are doing any kind of transformation before loading into your target table.
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

1. Check whether you have same number of columns in your before and after link. >>> Yes

2. Verify the key column and change columns, and see whether you add any surrogate or generated column in your before and after column list or not. >>> No there are no surrogate key.

3. Check whether you are doing any kind of transformation before loading into your target table. >> just plain inserts.
girija
Participant
Posts: 89
Joined: Fri Mar 24, 2006 1:51 pm
Location: Hartford

Post by girija »

Just to check.

Take only one record to test and send it PEEK stage and compare each and every column. You might get a clue from that.

Best of luck.
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

Problem solved.....

One of the columns size was missing,.....

Thanks for your suggestions...
Post Reply