Page 1 of 1

perform Range Lookup in server job

Posted: Fri May 04, 2018 3:59 am
by palak08
Hi Team,

How to perform RANGE LOOKUP In server job, without using Enterprise or UV stage.

Thanks In Advance

Posted: Fri May 04, 2018 6:17 am
by chulett
So... based on your 'additional info'... you actually mean how to perform range lookup in a Server job with the DB2 Connector stage?

Now, I don't do DB2 and did not get a chance to use Connector stages but back in the day a 'range lookup' in a Server job with a DB stage meant custom / user-defined SQL. I seem to recall letting the stage generate it and then customizing it to do a BETWEEN or whatever was needed other than the normal equality join.

How about showing us what you've tried and what 'issue' you've had. Anything like what was mentioned above?

Posted: Sat May 05, 2018 1:12 am
by ray.wurlod
Like Craig, I'd use a BETWEEN query in custom SQL. Use two parameter markers and the values coming from two columns marked as Key.