Change Capture stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Roopanwita
Participant
Posts: 125
Joined: Mon Sep 11, 2006 4:22 am
Location: India

Change Capture stage

Post by Roopanwita »

In change capture stage,can key columnn be a VARCHAR?(On column I m comparing value)
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Yes.
Roopanwita
Participant
Posts: 125
Joined: Mon Sep 11, 2006 4:22 am
Location: India

Post by Roopanwita »

I couldn't get exactly.Can it be VARCHAR or it need to be Int only
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Roopanwita wrote:I couldn't get exactly.Can it be VARCHAR or it need to be Int only
Key column can be varchar. What is the error you get?
Roopanwita
Participant
Posts: 125
Joined: Mon Sep 11, 2006 4:22 am
Location: India

Post by Roopanwita »

I didn't get any error,but changed record is not getting captured..

My job design is as -

src1(before)--
CC---Filter(on changed code)---insert-updt(src2)/Insert(Hist)
src2(after)--

In this I have changed some values in SRC2,still CC is unable to capture that record..
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

What is the output of the changed records through CC. Is it Edit or Insert or any other?
Roopanwita
Participant
Posts: 125
Joined: Mon Sep 11, 2006 4:22 am
Location: India

Post by Roopanwita »

Output should be Edit,but no record is coming out of CC
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Roopanwita wrote:Output should be Edit,but no record is coming out of CC
In that case it should be Copy record if you had set drop copy record.

Is metadata for before and after dataset same?
Roopanwita
Participant
Posts: 125
Joined: Mon Sep 11, 2006 4:22 am
Location: India

Post by Roopanwita »

Last edited by Roopanwita on Thu Jun 19, 2008 10:16 pm, edited 1 time in total.
thumati.praveen
Participant
Posts: 106
Joined: Wed Oct 04, 2006 5:21 am

Post by thumati.praveen »

once check the link order and what method your using? (Example:Allkeys Explicit values,Explicit keys Explicit values like this...)
Roopanwita
Participant
Posts: 125
Joined: Mon Sep 11, 2006 4:22 am
Location: India

Post by Roopanwita »

I m using Explict Key & Values option
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

what is the $APT_PAD_CHAR value. for varchar columns i find it realy matters.
thumati.praveen
Participant
Posts: 106
Joined: Wed Oct 04, 2006 5:21 am

Post by thumati.praveen »

Roopanwita wrote:I m using Explict Key & Values option
The stream link should be after and refrence link should be the before in CC link order.Finally what Change code it returns identify if it is 3 then the source record was changed if it is 1 then new record.
Roopanwita
Participant
Posts: 125
Joined: Mon Sep 11, 2006 4:22 am
Location: India

Post by Roopanwita »

I coudn't find $APT_PAD_CHAR parameter.
Already I have made Ref as Bedor & Stream as After link and also set same logic (1 -insert,3 update)
But though there r changed value in reference no record is coming out of CC.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The environment variable name is APT_STRING_PADCHAR.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply