COGNOiSe.com - The IBM Cognos Community

ETL, App Development and other tools => COGNOS DecisionStream/Data Manager => Topic started by: Srik on 13 Dec 2006 08:17:01 PM

Title: Filtering Null Records.[Closed]
Post by: Srik on 13 Dec 2006 08:17:01 PM
Hello ,

I'm loading data from flatfile to database.

While this process i need to elimate all null records.

The null records which are elimated need to be written to a text file . and other records need to be loaded in the database table.

Can some one help me how to handle this issue.

Thanks,
Kanth.
Title: Re: Filtering Null Records.
Post by: MFGF on 15 Dec 2006 10:21:43 AM
Hi,

The easiest way to handle this is probably to have two deliveries from your build - the first configured as a text file delivery, and the second as a relational table delivery.  Add an output filter to the text file delivery containing syntax such as
Field1 is null and Field2 is null and Field3 is null and...   (substituting the real field names for Field1, Field2 etc)
then check the 'Exclusive' checkbox for this delivery.

The build should then deliver the null records to the text file and the non-null records to the relational table.

Hope that helps!

MF.
Title: Re: Filtering Null Records.
Post by: Srik on 17 Dec 2006 04:27:01 PM
Thank you , it worked..