how to create a lookup link in datastage

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
phanipriya
Participant
Posts: 12
Joined: Thu Feb 15, 2007 3:58 pm

how to create a lookup link in datastage

Post by phanipriya »

I have two tables customer & contact .customer is the primary table & contact is the secondary table.I am joining the tables and passing the output file .


While doing the link process between the databases and sequential file .
it throws me an error 40813 .The destination stage cannot support any more stream input links. As i have already have a stream link between contact table and sequential file.


So How do i create a lookup link between contact table and sequential file.

I don't see any options for creating an lookup link .
So can anybody suggest me how to create a lookup link .


Thanks






phani
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

I think you need datastage training.

Regards
Sreeni
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Parallel jobs work differently from Server jobs. In server the lookup is done through a transform stage, while in Parallel you have to use a lookup stage.
phanipriya
Participant
Posts: 12
Joined: Thu Feb 15, 2007 3:58 pm

Post by phanipriya »

Hi Arnd ,

Thanks for the reply .

I am following this url for my job :-

http://www.ibm.com/developerworks/data/ ... g/#step1.1

In this tutorial If you look at fig:10 Job Diagram

There are two links

DSLINK3 is a stream link for the transformer
DSLink4 is a lookup link for the transformer


when i try to create DSLink4 i am getting it as a stream link and it
it throws me an error 40813 .The destination stage cannot support any more stream input links.

i don't find any options to create a lookup link .

This might be a funny issue for you all .But I am unable to solve it .
is this my server problem or do i need to change anything .
phani
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

As I mentioned before, Server jobs perform lookups through transform stages and parallel jobs perform lookups through lookup stages. The example is a server job and you are working with a parallel job in the designer.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You've marked your job type as Parallel hence all the grief about how lookups work. If you are actually working with a Server job (as you need to be for this example) then you should be ok. Since I assume you've already created DSLink3 at this point as a solid lined stream link, when you create the second link, DSLink4, it should automatically create it as a dotted line reference lookup link.

If that's not working, give us some gory details. When you go to create DSLink4, what other links have already been created? DSLink3 only? DSLink3 and DSLink6? What 'direction' are you attempting to perform the lookup link, from where to where? Make sure you try going from CUST to JOIN_CUST_CNT if you're not doing that now.

I don't have access to a client any more so can't create the job and play along but we should be able to straighten this out with the details noted above.
-craig

"You can never have too many knives" -- Logan Nine Fingers
phanipriya
Participant
Posts: 12
Joined: Thu Feb 15, 2007 3:58 pm

Post by phanipriya »

Thanks chulett & ArndW

I have tried it as server job .it works.

.
phani
Post Reply