Chaining reference input links

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
freef1yer
Participant
Posts: 12
Joined: Thu Sep 25, 2003 3:01 am
Location: London
Contact:

Chaining reference input links

Post by freef1yer »

Hi All

I have a job with two reference input links to one transformer. The first reference input link takes its key value from the stream input. The second reference input link takes its key value from the first input reference link.

The UI didn't allow me to drag and drop this arrangement, and now it is in place, the key derivation for the second input reference link is shown in red. However, the job appears to compile without any problems.

Does this mean that, although the UI doesn't support this kind of reference chain within a single transformer, the method is valid and works correctly? (Assuming the input links are correctly ordered, of course.)

Has anybody else tried to do this?

Thanks

Dave
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes. It is frowned upon by some, but as long as you understand the link ordering requirements and don't mind a little red in your jobs, it does work.

I personally don't do this, but I know people that do. It's a good thing to drop an annotation about in the job so people don't think something is 'broken' when they open the Transformer. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Or, this undocumented functionality may be removed in a subsequent patch, minor, or major release without notification. Doing what you're doing is exploiting a non-enforced trap in the GUI, obviously the RED is meant to say you shouldn't be doing this. Were this functionality to change, you're jobs could break after an upgrade.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

See... frowned upon. :lol:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Yes, but whhhhyyyyyy is it frowned upon. Sometimes my priorities are considered "chicken-littleish".
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Dunno. The "approved" method would be to do the two reference lookups in two consecutive Transformer stages, passing the results of the first along the link between the first and the second.
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 »

Ken's method runs faster. You know what I mean Ray?
Mamu Kim
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Hey wait a minute, I DON'T use the technique because the GUI represents this as invalid and Ascential could close the door on this technique at their perogative.

I think the functionality SHOULD be there to do this (remove the half-hearted GUI attempts to block it, you can still type in the column derivation and it works, even though it's red). But, never exploit a bug or a loophole, because you never know when it will get "fixed". You'll be fixed alright.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I still like this method better than another transform.
Mamu Kim
Post Reply