Lookup logic

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
dstest
Participant
Posts: 66
Joined: Sun Aug 19, 2007 10:52 pm

Lookup logic

Post by dstest »

I have an lookup file file like below.

Not50,PLAN,HPHC
50,ANY,MEDICA

I have the following input file.

100,PLAN
50,100

Here is the description.

100 means Not50 in the lookup file that means it matched and PLAN matched with PLAN then it should return HPHC.

second row in the input file 50 matches with 50 in the lookupfile second row and 100 means ANY.so it should return MEDICA

Output:

100,PLAN,HPHC
50,100,MEDICA

Both are files only.So how can we acheive this in parallel job by using lookup file stage.Please give me suggestion to perform this lookup.

Thanks
Last edited by dstest on Fri Aug 15, 2008 11:58 pm, edited 1 time in total.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Two lookups. The first looks up 50. The result of that goes through a Transformer stage that generates the string "Not50". The second lookup is conditional on the first having failed.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dstest
Participant
Posts: 66
Joined: Sun Aug 19, 2007 10:52 pm

Post by dstest »

Can you please explain me littile bit detail
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

He did. You looking for lotta bit detail?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What do you not understand about what I posted?
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