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?



if we using two sources having same meta data and how to check the data in two sources is same or ..

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

Post New Answer

More Data Stage Interview Questions

what is push and pull technique??? I want to two seq files using push technique import in my desktop what i will do????

1 Answers   TCS,


Differentiate between data file and descriptor file?

0 Answers  


how do u convert date in 20-12-07 to dec-20-2007 or 20-dec- 2007 or 20-dec-07 in parallel

3 Answers   Wipro,


Why we use surrogate key?

0 Answers  


how to unlock a locked job in datastage 8.0

3 Answers   HCL,






What are the types of jobs we have in datastage?

0 Answers  


Distinguish between informatica & datastage. Which one would you choose and why?

0 Answers  


Hai..,in datastage how to explain project in interview?please explain any domain please.

1 Answers   Wipro,


how to identifie,is it innerjoin,leftouter join in lookup?

2 Answers   Hexaware,


if the source file is CID,CCODE,CONNDATE,CREATEDBY 0000000224,1000,20060601,CURA 0000000224,2000,20050517,AFGA 0000000224,3000,20080601,TUNE 0000000225,1000,20020601,CURA 0000000225,2000,20050617,AFGA 0000000225,3000,20080601,TONE AND TARGET is oracle following are the validations cid loaded with unique records leading zeors has to be deleted while loading cid in target load only customer who got early connected to company conn_date should be loaded into oracle date format cid datatype is varchar2 in target conn_date is data datatype ccode is varchar2 0000000224,1000,20060601,CURA 0000000224,1000,20060601,CURA

2 Answers  


How a routine is called in datastage job?

0 Answers  


I have scenario like this seq file --> transformer --> sort stage --> dataset In this job which prtitioning technique you are using and why???

3 Answers   CTS, IBM,


Categories