Droping Columns in FILTER 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
Raamc
Premium Member
Premium Member
Posts: 87
Joined: Mon Aug 20, 2007 9:08 am

Droping Columns in FILTER stage

Post by Raamc »

Hi,

I need to drop some of the columns from Input file. I am using the FILTER stage immediately after the sequential file to filter out some records.

I know that the COPY stage is the best practice for dropping the columns. Here my doubt is, instead of using another stage, can we drop columns in the FILTER stage itself.

Is it effect the performance? :!:
Thanks,
Raamc
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Actually, the best stage to drop columns with is the Modify stage, and since the Filter stage won't let you drop columns I suggest that you use the Modify Stage.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The best stage to use to drop columns is the Copy stage, as its processing overheads are zero. The "transfer" is done by pointing the output column to the same address as the input column.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
OddJob
Participant
Posts: 163
Joined: Tue Feb 28, 2006 5:00 am
Location: Sheffield, UK

Post by OddJob »

But if you're using RCP the only way to drop fields is by using a modify stage.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I never use RCP. It destroys any hope you may have had of performing lineage analysis.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
OddJob
Participant
Posts: 163
Joined: Tue Feb 28, 2006 5:00 am
Location: Sheffield, UK

Post by OddJob »

Never say 'never', that's what I always say.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:lol:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Raamc
Premium Member
Premium Member
Posts: 87
Joined: Mon Aug 20, 2007 9:08 am

Post by Raamc »

Hi All,

Thanks for the Replies.

I am using the COPY stage as suggested by RAY for drop the columns. :P
Thanks,
Raamc
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I have come to love both RCP and the Bomb.
Post Reply