COGNOiSe.com - The IBM Cognos Community

ETL, App Development and other tools => COGNOS DecisionStream/Data Manager => Topic started by: SynexusStuart on 05 Oct 2011 05:16:13 AM

Title: Remove unwanted characters in Data Manager build
Post by: SynexusStuart on 05 Oct 2011 05:16:13 AM
Hi all,

I have a column in a table with large amount sof messy string data. We often find that it contains many unwanted characters such as % ^
$ " { } etc.

Is there an in-built way of using Data Manager to replace any of the above characters in that column?

Hope there is.
Stuart
Title: Re: Remove unwanted characters in Data Manager build
Post by: S2000 on 22 Feb 2012 09:09:30 AM
You could try making a funtion that strips them all out.
Take a look at the "replace" command.

It's common to create a custom user defined funtion that will trim leading and trailing spaces and replace those sorts of chars with spaces.
Then you can use the custom 'clean' function on any fields that need it.