Lookup Opeartion

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Lookup Opeartion

Post by srinivas.g »

Hi all,

In source query iam getting records like
63573
123
Look up query iam getting reocrds like
63573
63573
63573
63573

in target iam getting only 1 record.but i want 4 records in target (4 are matching records)

Please help me
Srinu Gadipudi
DS_SUPPORT
Premium Member
Premium Member
Posts: 232
Joined: Fri Aug 04, 2006 1:20 am
Location: Bangalore

Post by DS_SUPPORT »

It depends , what stage you are using for a lookup and also your target Key Structure.

You have to use Universe Stage or ODBC stage , to return Multiple row set from the lookup. Search the forum with the keyword "Reference Link with Multi Row Result Set", you will find ways on how to implement it.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

If the input brings unique keys, you can reverse the main and reference streams.
Post Reply