Data Cleaning Issue in Px
Posted: Wed Nov 23, 2005 7:01 am
Hi All,
I am facing problem while ceaning data. The problem is like this.
I have a character field having numeric data but along with '$' sign.
The possible values of data are as give below for example
$-
$100
$-100
I don't want $ in the output and i have to handle '$-' type of data.
As "Ereplace" or "Change" function will not work for parallel job, I am using "Convert" function.
For cleaning this I am using following function in transformer stage.
If (IsNull(Trim(Convert("$-","",Field1)))) then "" Else Convert("$","",Field1)
But while compiling it gives me error.
If, just for the compilation sake, I use Trim(Convert("$-","",Field1))
Then the compilation goes fine.
Please suggest me the reason for this compilatoin error.
I think, there is some problem with 'IsNull' function and '$' sign.
Waiting for your reply...
Bye,
Neeraj
I am facing problem while ceaning data. The problem is like this.
I have a character field having numeric data but along with '$' sign.
The possible values of data are as give below for example
$-
$100
$-100
I don't want $ in the output and i have to handle '$-' type of data.
As "Ereplace" or "Change" function will not work for parallel job, I am using "Convert" function.
For cleaning this I am using following function in transformer stage.
If (IsNull(Trim(Convert("$-","",Field1)))) then "" Else Convert("$","",Field1)
But while compiling it gives me error.
If, just for the compilation sake, I use Trim(Convert("$-","",Field1))
Then the compilation goes fine.
Please suggest me the reason for this compilatoin error.
I think, there is some problem with 'IsNull' function and '$' sign.
Waiting for your reply...
Bye,
Neeraj