I have 2 Files like
fileA fileB Output1 Output2 Output3
1 6 1 6 11
2 7 2 7 12
3 8 3 8 13
4 9 4 9 14
5 10 5 10 15
6 11
7 12
8 13
9 14
10 15
please let know
Answer Posted / mohit
We can solve this by using Change capture stage. First,we
use source as 'A' and refrerence as 'B' both of them are
connected to Change capture stage. From, change capture
stage it connected to filter stage and then targets X,Y and
Z.
(Change Code '0'--->exist in both, copy record
Change Code '1'--->Exists in SRC 'A', INSERT record
Change Code '2'--->Exists in SRC 'B', DELETE record
Change Code '3'--->Exists in 'A' & 'B' with changes, UPDATE
record)
In the filter stage:
Change_code column=1 it goes to 'X' [1,2,3,4,5]
Change_code column=0 it goes to 'Y' [6,7,8,9,10]
Change_code column=2 it goes to 'Z' [11,12,13,14,15]
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Why do we use exception activity in Datastage?
What are some different alternative commands associated with "dsjob"?
Explain usage analysis in datastage?
Highlight the main features of datastage?
Define Job control?
What is the purpose of pivot stage and types of containers in datastage
Define project in datastage?
how can we validate the flat files using the date in the header and number of records in the flat file? Using both conditions at a time.
What is the command line function to import and export the ds jobs?
CHANGE CAPTURE
Define Merge?
How to manage date conversion in Datastage?
Explain the datastage parallel extender (px) or enterprise edition (ee)?
hi iam new to this tooliam cmpltied to know abt datastage so now iam in project tell me whole step by step what iam doing iwnt to go with exp so plz hlp me pals
What is the importance of the exception activity in datastage?