10-02-2017 08:52 AM
Is anyone can help me to remove a special character from a variable regardless of its order in the variable.
here is the example:
what I have:
what I want (just delete the slash)
My database contains more than a million ids that contain special characters (/, -,*,.) that I just want to search for and remove them by keeping the other characters.
Thank you for your help.
10-02-2017 09:13 AM
Use the COMPRESS function
10-02-2017 09:31 AM
As I understand I have to put this code:
data want;set have;
id=compress(id, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', 'k');
is this true?
Need further help from the community? Please ask a new question.