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 :)

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:

Posted: Wed Mar 26, 2008 9:42 am
by gateleys
DSguru2B wrote:What was the question again. Why would anyone get a reply with the code and then clear the question :evil:
Unwillingness on the OP's part to recognize the fact that he/she had to take help for a "trivial" matter, perhaps!!!! :roll: :roll:



Its this kind of attitude that annoys me. When all of us are here to exchange knowledge, there are some that get what they want from here, but are unwilling to share it with the rest of the forum community. Further, the choice of the subject name 'g' shows the OPs intention.:evil: :evil:

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.