Andy K
Andy K

Reputation: 5044

Remove single quote

I have a column called rea. Inside, there are data like below

oc'ean

I'm using the function tranwrd to remove the '

tranwrd(rea,'''','');

Can I use something else than the '''' to represent the '?

Upvotes: 1

Views: 4195

Answers (1)

Chris J
Chris J

Reputation: 7769

You can quote single-quotes within double-quotes, and vice versa.

tranwrd(rea,"'",'');

But if you just wish to remove the quotes, rather than replace them with a non-space character, use the compress function

compress(rea,"'");

Upvotes: 3

Related Questions