Range 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
him121
Premium Member
Premium Member
Posts: 55
Joined: Sat Aug 07, 2004 1:50 am

Range lookup

Post by him121 »

Hi All
Need some urgent help Regarding Range Lookup..

I have in A table 3 column

X,Y,z..

Values of X,Y,Z are like ("1A","0.000150",0.000200"")

Now i want to do lookup with this table...
when my input value is between Y and Z...
it shd return me value of X...

Means my query shd be like
Select X from A where Y <= (input value) and z>=(input value);

i know i cannot achieve this with HASH file...
I am thinking to use MetaSQL but i dont have any idea regarding Syntax..to fire in DB2 stage ,,

Please try to give some idea..

Thanks
Himanshu
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
I run a quick search with range lokup as key words and checked the search for all key words.
here are some of the things that turned up:
viewtopic.php?t=92264&highlight=range+lookup
viewtopic.php?t=92924&highlight=range+lookup
viewtopic.php?t=93532&highlight=range+lookup
viewtopic.php?t=92113&highlight=range+lookup
there are more out there you only need to search for them ;)

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or the Mother of All Posts on the subject here.

:wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

You had to bring in Mom into it. Didn't you?
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I told you to stop picking on me or I would tell!
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

You always was Mom's favorite.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Need some urgent help Regarding Range Lookup..
Then sign up with your support provider for premium service; learn the true cost of urgency. We don't do "urgent". We're all volunteers.
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