how to do

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
harikumar
Participant
Posts: 33
Joined: Wed Apr 21, 2010 9:19 pm
Location: banglore

how to do

Post by harikumar »

i have emp table like

empno
111
222
333

i have two target links

target link1
empno
111
222

target link2
empno
111
333

NOTE:without using switch AND filter stages
Last edited by harikumar on Mon Jul 19, 2010 1:41 am, edited 1 time in total.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Can you explain your logic to decide which row goes into which target link? Your example is missing that information.
harikumar
Participant
Posts: 33
Joined: Wed Apr 21, 2010 9:19 pm
Location: banglore

hi

Post by harikumar »

to link1
111
222

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

Re: how to do

Post by ray.wurlod »

harikumar wrote:NOTE:without using switch AND filter stages
This smells like an interview question to me.

I believe strongly that interview answers should accurately reflect the interviewee's own knowledge and skills.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Your reply to Arnd's question was not what I'd call logic. We (you) need to know what are the rules for duplicating one (or more?) particular row but not others. Perhaps you could ask your interlocutor?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I can't think of a logical reverse-engineered logic for the selection with only 3 source rows to work with. I can think of several useless and unlikely formulae, including "the sum of each row and its predecessor must be even in Link1 and odd in Link2"...
venugopal.123
Participant
Posts: 9
Joined: Sun Jun 27, 2010 11:52 pm

Post by venugopal.123 »

This is simple use Transformer stage and map the columns to two output likns as how you need data in the output....
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That's the big question, though, isn't it? Just how are rows allocated to the different outputs? harikmar remains strangely silent on this question.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

harikumar wrote:to link1
111
222

to link2
111
333
As noted, this explains nothing and just parrots your earlier example. Please detail for us in words how you decide what goes where. :?
-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 »

Otherwise the problem reduces to a brain-dead answer to the exact question. The two constraint expressions would be of the form:

Code: Select all

InLink.KeyField = 111 Or InLink.KeyField = 222
InLink.KeyField = 111 Or InLink.KeyField = 333
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