if we using two sources having same meta data and how to
check the data in two sources
is same or not? and if the data is not same i want to abort
the job ?how we can do this?
Answer / rahul verma
We need to compare the two source data using Change Data
Capture stage. If the Change_code is '0' then there are no
differences between the two sources. If the value of
Change_code is "1" or "2" or "3" then all the data in two
sources are not same.
To abort the job in case of any discrepancies between two
sources, we can make use of a Transformer stage wherein we
can provide the condition for CHange_code <>0, this will
pass the unmatched record to next stage.Since we need to
abort the job, in the same transformer derivation - check
the abort box and mention row = 1, which will result in as
soon as any unmatched record leaves this transfomer stage,
the job aborts. Hence serve the purpose.
Kindly comment on my resolution and pls correct me in case
i am wrong.
| Is This Answer Correct ? | 9 Yes | 1 No |
What is the difference between the local container and shared container?
hi my source is:: empno,deptno,salary 1, 10, 3.5 2, 20, 8 2, 10, 4.5 1, 30, 5 3, 10, 6 3, 20, 4 1, 20, 9 then target should be in below form... empno,max(salary),min(salary),deptno 1, 9, 3.5, 20 2, 8, 4.5, 20 3, 6, 4, 10 can anyone give data flow in data stage for the above scenario.... thanks in advance...
Tell me Wt main advantage of Stage varibles? Project level hints?
What is the process of killing a job in datastage?
how can we create a Sorrogate key in transformer stage? I want it in parallel mode
what is the difference between INROWNUM AND OUTROWNUM IN DATASTAGE SERVER EDITION?
Define APT_CONFIG in Datastage?
How a routine is called in datastage job?
how to export or import the jobs in .ISX file
how to design the change capture stage in(data stage parallel jobs) type 2
in sequtial file 2 columns avaliable,iwant only one column load the target how do it.
What are some different alternative commands associated with "dsjob"?