AGE BAND lookup

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
pradeep_nov18
Participant
Posts: 92
Joined: Wed Mar 05, 2008 4:09 am
Location: chennai
Contact:

AGE BAND lookup

Post by pradeep_nov18 »

Hi All,

I have Requirement to reterive the id based on the range of value,Please help to resolve this.

Eg:

Table1:

Date1 Date2 AGE_Diff
20-01-2010 20-10-2010 9

Table2:
id MIN_VALUE MAX_VALUE
1 1 5
2 6 10
3 11 100


How to loookup Table1.AGE_DIFF to Table2.MIN_VALUE,MAX_VALUE(based on the range) i have to reterive the id 2 result for the above example.

Noted :Table1.AGE_DIFF is the driven.

Thanks for posting idea and solution in advance
pradeep.v
kadale.nilesh
Participant
Posts: 2
Joined: Sun Dec 20, 2009 11:09 pm

Post by kadale.nilesh »

Range lookup is support in datastage 8x. U can directly check the value in a particular range.
pradeep_nov18
Participant
Posts: 92
Joined: Wed Mar 05, 2008 4:09 am
Location: chennai
Contact:

Post by pradeep_nov18 »

kadale.nilesh wrote:Range lookup is support in datastage 8x. U can directly check the value in a particular range.
Can you elaborate how can i do that,If any Condition let me know based on my example.

Thanks for help in Advance.
pradeep.v
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

kadale.nilesh wrote:U can directly check the value in a particular range.
Indeed, anyone can, not just U (one of our posters).

The descriptions in the manual are quite clear. Show us what you have attempted.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pradeep_nov18
Participant
Posts: 92
Joined: Wed Mar 05, 2008 4:09 am
Location: chennai
Contact:

Post by pradeep_nov18 »

ray.wurlod wrote:
kadale.nilesh wrote:U can directly check the value in a particular range.
Indeed, anyone can, not just U (one of our posters).

The descriptions in the manual are quite clear. Show us what you have attempted.

Hi Ray,

I have drived the Table1 has my primary and while i perform look up with Table2(which is reference),I can see only one value that is "AGE" derived for MIN value, Max value,hence unable to retrieve exact band id.So i need some guidelines to incorporate the logic.

Thanks ,
pradeep.v
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

In your lookup stage in the bottom left box, specify "Key Type" as "Range" in order to do a range lookup.
Post Reply