Implementing 'Rank' function in DS Server jobs

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
yaminids
Premium Member
Premium Member
Posts: 387
Joined: Mon Oct 18, 2004 1:04 pm

Implementing 'Rank' function in DS Server jobs

Post by yaminids »

Friends,

My new assignment requires me to extract data from 3 different tables present in 3 different schemas, in the source, to one staging table in the destination db.

In other terms, the requirement is to select the data based on the VENDOR column (VENDOR=1)

Check if the first table (in 1st schema) has VENDOR=1 then select data from table 1, if not check if second table (in 2nd schema) has VENDOR=1 then select data from table 2 and so on

I could do this using 'Rank' function if all the 3 tables are in one schema but since they are in different schemas complicates the matters

Is there a way to implement 'Rank' function in Server jobs using 'Link collector'

ODBC-1 ======>
ODBC-2 ======>Link Collector====>ODBC
ODBC-3 ======>


Thanks
Yamini
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No.

You will need to attempt all the lookup and go with the first non-null result.

This is not a RANK function.
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