Page 1 of 1
How do I find garbage/control characters within a column?
Posted: Wed Mar 26, 2008 2:56 am
by mohanraj
In a Server job I wish to ensure that there are no garbage characters in the field. How would I do that?
(Item modified by the Administrator)
Posted: Wed Mar 26, 2008 3:07 am
by ray.wurlod
Code: Select all
Len(Oconv(Oconv(InLink.TheInput,"MC/A"),"MC/N")) > 0
One Oconv() removes all alphabetic characters, the other removes all numeric characters. Anything left over is non alphanumeric.
Posted: Wed Mar 26, 2008 7:25 am
by chulett
h?
Posted: Wed Mar 26, 2008 7:37 am
by balajisr
i.
Posted: Wed Mar 26, 2008 7:46 am
by dinthat
j
![Smile :)](./images/smilies/icon_smile.gif)
Posted: Wed Mar 26, 2008 9:19 am
by DSguru2B
What was the question again. Why would anyone get a reply with the code and then clear the question
![Evil or Very Mad :evil:](./images/smilies/icon_evil.gif)
Posted: Wed Mar 26, 2008 9:42 am
by gateleys
Posted: Wed Mar 26, 2008 12:13 pm
by gateleys
Thanks Administrator.... for updating the OP's initial post (which he had deleted after he got an answer), and the 'subject' item (which he had put as 'g').
And someone else has to clean up the mess!!!
Posted: Wed Mar 26, 2008 2:53 pm
by ray.wurlod
If you replace "garbage" with "non-alphanumeric" you pretty much have the original question - how to remove non-alphanumeric characters from a string.
A later reply from the OP indicated that he (she?) would try what I suggested.
That the thread is marked as resolved suggests that it works.