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 Posted / subhash

SeqFile1----->|
.................|ChangeCapture--->Transformer--->TGT
SeqFile2----->|

SeqFile1 & SeqFile2 are the inputs to Change Capture.
From the output Change Capture Stage we one extra column
‘Change Code’.
If, the record is same in both file, i.e. Copy Record.
Change Code=0
If, the record is only in SeqFile1, i.e. insert Record.
Change Code=1
If, the record is only in SeqFile2, i.e. delete Record.
Change Code=2
If, the record is in both files but with some modifications,
i.e. edit/update Record. Change Code=3

If all Change are '0' then 2 files having same Data.

In the transformer constraints, we can mention as ‘ change
code <>0’ then set ‘Abort After Rows’ to ‘1’.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main features of datastage?

659


How will you move hashed file from one location to another location?

1653


Can you explain how could anyone drop the index before loading the data in target in datastage?

889


What are routines in datastage? Enlist various types of routines.

627


State the difference between an operational datastage and a data warehouse?

602






1.new record it will insert but changes of natural key is not present in taget i want to update (here key is composite natural key )can any one help this to explan how to do

1649


how to add a new records into source?

1525


What is difference between join, merge and lookup stage?

634


Source has 2 columns: USA,NewYork INDIA,MUMBAI INDIA,DELHI UDS,CHICAGO INDIA,PUNE i want data in target like below: INDIA,MUMBAI1 INDIA,DELHI2 INDIA,PUNE3 USA,NEWYORK1 USA,CHICAGO2

347


Describe stream connector?

830


Differentiate between datastage and informatica?

722


How to convert RGB Value to Hexadecimal values in datastage?

3454


Hi,can any one please mention list of dimension and fact tables for Sales and Distribution System for a Pharmacutical company.

1665


What are the important features of datastage?

616


What are stage variables and constants?

700