filter

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
mcs_suman
Participant
Posts: 20
Joined: Thu Sep 27, 2007 8:42 am
Location: chennai
Contact:

filter

Post by mcs_suman »

In filter stage i am filtering the particular record which has many duplicates.

which gives all the rows,in order to the first row I set row out put only once. instead of getting only one row i am getting all the row.
could any one help me.
suman
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

Looks like a remove duplicates logic to me. Do you want to remove all the duplicates from the data? Then use a Remove Duplicates stage instead of a filter stage. Hash partition and sort the data on the key fields.
It is our choices that show what we truly are, far more than our abilities - J.K.Rowling
mcs_suman
Participant
Posts: 20
Joined: Thu Sep 27, 2007 8:42 am
Location: chennai
Contact:

Post by mcs_suman »

Maveric wrote:Looks like a remove duplicates logic to me. Do you want to remove all the duplicates from the data? Then use a Remove Duplicates stage instead of a filter stage. Hash partition and sort the data on the key fields.

i didn't mean removing the duplicates. i set 'output row once', option in filter stage,and still i didn't notice any change in the output.

will this option allow only one record from the filtered output.
suman
BugFree
Participant
Posts: 82
Joined: Wed Dec 13, 2006 6:02 am

Post by BugFree »

This is what the documentation says:

Code: Select all

Set this to true to specify that rows are only output down the link of the first Where clause they satisfy. Set to false to have rows output down the links of all Where clauses that they satisfy
Setting this to true will pass the record only once to any output links.
Ping me if I am wrong...
Post Reply