Routine or Transform, which one wins

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
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Routine or Transform, which one wins

Post by WoMaWil »

When having a Routine and a Transform with the same Name and number of parameters in a Job-Derivation, the Transform wins.

Is there a way to force the Derivation to call the Routine?
Wolfgang Hürter
Amsterdam
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I don't think so, but we'll have to see what one of the Uber Gurus has to say on the subject. :wink:
-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 »

It is not possible.

In this situation (a Transform and a Routine with the same name) the Transform is always selected.

This harks back to the earliest versions of DataStage, where the only available way to invoke a Routine was via a Transform; often they had the same name.

I guess it's been kept that way to ensure backwards compatibility.

Might be worth an enhancement request to add a switch with which you might control this behaviour, if it's important to you.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

Thank you Ray for the answer, even though I am not able to read the complete answer nor to set this question on resolved.
Wolfgang Hürter
Amsterdam
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

He expands on his answer, but the bottom line is still 'no'. :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 »

Did Craig call Ray a Uber? I don't think I would take that Ray.
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I went fishing for an Uber, can't help who takes the hook. :wink:
-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 »

Wolfgang, you need to get in touch with Walter (the webmaster) because of the problem with not being able to set the status to Resolved.

As to the rest of the answer, think back prior to version 3.0 - I know you were there!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

It takes a bigger Uber than me to take this bait.
Mamu Kim
Post Reply