Stage to map same input column to 2 different output columns

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
Ezapa
Participant
Posts: 5
Joined: Sat Mar 22, 2014 8:09 pm

Stage to map same input column to 2 different output columns

Post by Ezapa »

input stage - Sequential file
output stage - Sequential file

Data flow:
SF-> XXX(stage to be used) -> SF

This flow is used 9 times within the same job

Using which stage do I map a single input column to two different output columns (other than a transformer stage to increase performance),as I have to use this stage 9 times within 1 job.

Example:
input SF has column CUSTID
ouput SF has 2 columns - ID1,ID2

CUSTID from input should be mapped to ID1,ID2.

Thank you
-Thanks
Ezapa
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

The Transformer stage can do it. Test it and measure the performance. I think it will perform better than you imagine.
Choose a job you love, and you will never have to work a day in your life. - Confucius
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The news that the Transformer stage is a performance bottleneck is old news and no longer correct.

That said, you can also use the Column Import stage to effect your requirement.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

I agree. It's sort of become an urban legend.
Choose a job you love, and you will never have to work a day in your life. - Confucius
Ezapa
Participant
Posts: 5
Joined: Sat Mar 22, 2014 8:09 pm

Post by Ezapa »

Thank you all,for the responses.

I have developed 2 jobs, one using the Column inport and the other using the transformer stage.The run time for two of the jobs was almost the same. So I would go with either of the stages.
-Thanks
Ezapa
Post Reply