Reference link data to be passed

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
halpavan2
Participant
Posts: 31
Joined: Fri Apr 18, 2008 5:44 am
Location: Hyderabad

Reference link data to be passed

Post by halpavan2 »

Hi All,

I have a requirment as below.

Main Link:
1
2
3
4

Reference Link:
1
2
3
5

1. After doing lookup i will pass the matched rows.
2. I will pass the unmatched rows from the main link by using reject option so that 4 record will pass.
3. My question here is i want to pass the unmatched row from the reference link to pass i.e 5 should be passed to a file. how can i do this..please let me know.

Thanks
Pavan
pavan
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can't. You need to look at doing a full outer join between the two sources to determine what lives where.
-craig

"You can never have too many knives" -- Logan Nine Fingers
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Use the Join stage rather than Lookup stage.
Choose a job you love, and you will never have to work a day in your life. - Confucius
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

Why not merge....?
Kandy
_________________
Try and Try again…You will succeed atlast!!
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

You can use Merge stage and make sure that no duplicate is there in main main link.
halpavan2
Participant
Posts: 31
Joined: Fri Apr 18, 2008 5:44 am
Location: Hyderabad

Post by halpavan2 »

I have used merge stage but one question here was

Unmatched Masters Mode:Drop (I want to capture these drop records how can i do this)

Warn On Reject Updates:True

Warn On Unmatched Masters:True
pavan
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

KEEP
Kandy
_________________
Try and Try again…You will succeed atlast!!
halpavan2
Participant
Posts: 31
Joined: Fri Apr 18, 2008 5:44 am
Location: Hyderabad

Post by halpavan2 »

Just to replrase ny sentence, i want to capture these records in a seperate file.
pavan
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

Pavan,

You need to be clear with your requirements. I know that you have 2 input files. How many output files you need and what do you need in them? Use your sample inputs and explain. Whatever, it is possible but you may end up using multiple merge stages (lookup/join).. sometimes multiple jobs. The solution depends on your requirements ;)
Kandy
_________________
Try and Try again…You will succeed atlast!!
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Yes... the Merge stage should work too!
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply