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
Post
by Roopanwita » Tue May 27, 2008 3:08 am
In change capture stage,can key columnn be a VARCHAR?(On column I m comparing value)
balajisr
Charter Member
Posts: 785 Joined: Thu Jul 28, 2005 8:58 am
Post
by balajisr » Tue May 27, 2008 3:30 am
Yes.
Roopanwita
Participant
Posts: 125 Joined: Mon Sep 11, 2006 4:22 am
Location: India
Post
by Roopanwita » Tue May 27, 2008 3:31 am
I couldn't get exactly.Can it be VARCHAR or it need to be Int only
balajisr
Charter Member
Posts: 785 Joined: Thu Jul 28, 2005 8:58 am
Post
by balajisr » Tue May 27, 2008 3:40 am
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 » Tue May 27, 2008 3:46 am
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
Posts: 785 Joined: Thu Jul 28, 2005 8:58 am
Post
by balajisr » Tue May 27, 2008 3:56 am
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 » Tue May 27, 2008 4:06 am
Output should be Edit,but no record is coming out of CC
balajisr
Charter Member
Posts: 785 Joined: Thu Jul 28, 2005 8:58 am
Post
by balajisr » Tue May 27, 2008 4:23 am
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 » Tue May 27, 2008 4:45 am
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 » Tue May 27, 2008 5:30 am
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 » Tue May 27, 2008 5:40 am
I m using Explict Key & Values option
keshav0307
Premium Member
Posts: 783 Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia
Post
by keshav0307 » Tue May 27, 2008 6:06 am
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 » Tue May 27, 2008 6:10 am
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 » Tue May 27, 2008 6:31 am
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 » Tue May 27, 2008 6:48 am
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.