Reference Links to Lookup Stage

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
lshort
Premium Member
Premium Member
Posts: 139
Joined: Tue Oct 29, 2002 11:40 am
Location: Toronto

Reference Links to Lookup Stage

Post by lshort »

From Manual:
The Lookup stage can have a reference link, a single input link, a
single output link, and a single rejects link. Depending upon the type
and setting of the stage(s) providing the look up information, it can
have multiple reference links (where it is directly looking up a DB2
table or Oracle table, it can only have a single reference link).

>I dont understand the direct to DB2/Oracle reference made above. The designer appears to allow me to create a job that has more than one ref link from Oracle/DB2 to Lookup Stage. Did I miss something?
Lance Short
"infinite diversity in infinite combinations"
***
"The absence of evidence is not evidence of absence."
lshort
Premium Member
Premium Member
Posts: 139
Joined: Tue Oct 29, 2002 11:40 am
Location: Toronto

Post by lshort »

Duh!
I found what I was missing.
Only one ref link is allowed when the LOOKUP_TYPE=Sparse

:oops:
Lance Short
"infinite diversity in infinite combinations"
***
"The absence of evidence is not evidence of absence."
alanwms
Charter Member
Charter Member
Posts: 28
Joined: Wed Feb 26, 2003 2:51 pm
Location: Atlanta/UK

Post by alanwms »

Lance,

Remember that sparse lookup option puts records into the lookup dataset as it finds them in the (DB2 or Oracle) database. Subsequent lookups will retrieve from the dataset instead of having to make the call to the database. This works well when you reference a small number of different keys in your lookup.

Alan
lshort
Premium Member
Premium Member
Posts: 139
Joined: Tue Oct 29, 2002 11:40 am
Location: Toronto

Post by lshort »

Thanks Alan, I'll be sure to keep that in mind. :-)
Lance Short
"infinite diversity in infinite combinations"
***
"The absence of evidence is not evidence of absence."
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Just do the other lookups using another Lookup stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply