When to use Copy Stage

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
Shruthi
Participant
Posts: 74
Joined: Sun Oct 05, 2008 10:59 pm
Location: Bangalore

When to use Copy Stage

Post by Shruthi »

Hi,

I have only two stages in a job, source as sequential file and target as SQL Server. I need to know if we have to use copy stage in between. I remember that we were using copy stages in between any two sources (even for seq file to dataset or seq file to seq file) where there was direct mapping.

Is it required to use Copy stage or not?
Harini
Premium Member
Premium Member
Posts: 80
Joined: Tue Mar 16, 2010 1:32 am

Re: When to use Copy Stage

Post by Harini »

We can use copy stage when we want to load our source data into multiple targets, and when store stage does not support multipe links.
Sreedhar
Participant
Posts: 187
Joined: Mon Oct 30, 2006 12:16 am

Post by Sreedhar »

Hi,

Between any two passive stages we can add copy stage, to avoid segment failures.
Regards,
Shree
785-816-0728
Ravi.K
Participant
Posts: 209
Joined: Sat Nov 20, 2010 11:33 pm
Location: Bangalore

Post by Ravi.K »

In your scenario, if it is direct mapping then it is not required to use Copy stage. If you want to drop attributes then it is required.
Cheers
Ravi K
Shruthi
Participant
Posts: 74
Joined: Sun Oct 05, 2008 10:59 pm
Location: Bangalore

Post by Shruthi »

Thanks. We will go ahead and use copy stage as the source and target are passive stages.
Post Reply