Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


I am having the 2 source files A and B and I want to get the
output as, the data which is in file A and which doesn't in
file B to a target 1 and which is in file B and which doesn't
in file A to a target 2?

Answers were Sorted based on User's Feedback



I am having the 2 source files A and B and I want to get the output as, the data which is in file ..

Answer / chandra swain(hara)

mapping for above job

fileA---->joinstage---->transformer------->dataset1
^ ------>dataset2
|
|
fileB


go to joinstage ,take type of join is fullouter join,

then copy the i/p column to o/p link ,goto transformer stage
u 'll found 2 constraint tab ,in 1st constraint tab write
leftRec_column<>rightRec_column And LeftRec_column<>0,

similarly in 2nd constraint tab write
leftRec_column<>rightRec_column And RIGHTRec_column<>0

then copy only LeftRec_column to dataset1
and copy only RightRec_column to dataset2


i think u definitly get the correct answer

Is This Answer Correct ?    9 Yes 1 No

I am having the 2 source files A and B and I want to get the output as, the data which is in file ..

Answer / reddymkl.dwh

FullOuter
FileA------->Join--------->Filter-------->T1
| |
| |
| |
| |
FileB T2
Use Fullouter Join Then
Filter-------> Where =Right.link=''
Where =Left.link=''
Nothing but A-B, B-A scenario.

Plz correct me if am wrong.....

Is This Answer Correct ?    0 Yes 0 No

I am having the 2 source files A and B and I want to get the output as, the data which is in file ..

Answer / upputuri.vinod

I am going to explain with example.

A B T1 T2
1 1 2 7
2 7-----> Now according to the QA in 3 9
3 9 4 5.
4 5


i am going to use the lookup stage..


1-------LK2<----B
! !
! !
T2 A---->LK1------1

T1


here T1 is the rejected data from LK1 where T2 rejected data
from LK2.

The condition in LK is Reject.

I hope U got the point..

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More Data Stage Interview Questions

How many number of reject links merge stage can have?

7 Answers   TCS,


HOW CAN WE SEE THE DATA IN DATASET?

4 Answers  


How do you reject records in a transformer?

0 Answers  


Source flat file contains src --- 1 2 ' ' ' 18 we had 3 targets T1 T2 T3 -- -- -- 1 4 7 2 5 8 3 6 9 10 13 16 11 14 17 12 15 18 How can i get? **Using only datastage, but not unix or any other. I am expecting the answer soon.. Thanks in advance.

7 Answers  


how can we send even and odd records from a sequential file to two different targets

10 Answers   IBM, iGate, TCS,


what is a message handler

3 Answers   IBM,


Name the third party tools that can be used in datastage?

0 Answers  


I am defining one varaible parameter date in job parameters.I want use this variable date in where clause in source query.

2 Answers   TCS,


What is the function in Transformer stage can act as Rank Function in oracle

1 Answers   Reliance,


Can aggregator and transformer stages use to sort the data? How ?

2 Answers  


sed,awk,head

0 Answers   CTS,


what is main difference between change capture and change apply stages

4 Answers   IBM,


Categories