Refernce lookup

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
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The first thing you need to do is figure out what you want to do. Which of the 10 returned records do you wish to use? Will any of the rows suffice? Do you wish to work on all 10 records?
raji
Participant
Posts: 40
Joined: Tue May 16, 2006 6:06 am

Post by raji »

Thanks for your reply.

Yes, we want all those 10 records in the target which are all unique by another two keys.

For example, the data looks as below:
key1 key2 key3 key4(absent in lookup) key5(absent in lookup)

100 xxxx yyy 1 a
100 xxxx yyy 2 b
100 xxxx yyy 3 c
100 xxxx yyy 4 d
100 xxxx yyy 5 e
100 xxxx yyy 6 f
.
..
..
..

so we are in need of those 10 rows.
Raji

Nothing is impossible because impossible itself
says I'm Possible
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If you want to get the duplicates, I think you will need to use a UV stage (or ODBC) to return all those duplicates instead of using a hashed file type stage.
raji
Participant
Posts: 40
Joined: Tue May 16, 2006 6:06 am

Post by raji »

Thanks.

I am using the Dynamic RDBMS stage for lookup table.

So, Shall i replace it with the UV stage?

Is it any work that i have to do with the uvodbc.config file?

In the uvodbc.config file, already the following entry for the UNIVERSE is present.

<localuv>
DBMSTYPE = UNIVERSE
network = TCP/IP
service = uvserver
host = 127.0.0.1

Is anything else i need to add in the uvodbc.config file?
Raji

Nothing is impossible because impossible itself
says I'm Possible
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Replacing it with an ODBC stage would be simpler.
-craig

"You can never have too many knives" -- Logan Nine Fingers
raji
Participant
Posts: 40
Joined: Tue May 16, 2006 6:06 am

Post by raji »

Hi ,

I can able to get the mulitple records using the ODBC stage by check in the option "Reference link with multi row result set".

Thanks for your help.
Raji

Nothing is impossible because impossible itself
says I'm Possible
raji
Participant
Posts: 40
Joined: Tue May 16, 2006 6:06 am

Post by raji »

Hi ,

I can able to get the mulitple records using the ODBC stage by check in the option "Reference link with multi row result set".

Thanks for your help.
Raji

Nothing is impossible because impossible itself
says I'm Possible
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Only the ODBC and UV stage types have this option.

Time to mark the thread as Resolved?
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