Fetch derivation rules from a lookup table

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
garthmac
Charter Member
Charter Member
Posts: 55
Joined: Tue Oct 21, 2003 9:17 am
Location: UK

Fetch derivation rules from a lookup table

Post by garthmac »

We have a job that runs for multiple countries, each having different transformation rules depending on the country that is being processed. Some derivations are becoming overly complex and difficult to maintain (if then else statements etc).

We have tried creating a lookup table that contains these derivations for each country, but these appear as strings instead of derivations in the transformer. Is there any way around this - perhaps a routine that converts this string to a derivation in the transformer? Does anyone have any other suggestions on how we could handle this?

Any help is greatly appreciated.

Thanks

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

Post by ray.wurlod »

You might try looking at this thread
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
garthmac
Charter Member
Charter Member
Posts: 55
Joined: Tue Oct 21, 2003 9:17 am
Location: UK

Post by garthmac »

Thanks for your quick reply Ray. I'll investigate what you suggest in that thread.

Garth
Garth
Post Reply