- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 07-10-2018 03:57 PM
(7051 views)
A+(B+C)
(A+B)+C
(A+B+C)
How to remove brackets so the string is A+B+C?
5 REPLIES 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Use COMPRESS Function like this
data have;
input string $;
datalines;
A+(B+C)
(A+B)+C
(A+B+C)
;
data want;
set have;
string=compress(string, "()");
run;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
how to remove parenthesis in a given string.
in my data having values like 22.9() and 1.9(mg/dl).
i want to remove only () in 22.9() not in 1.9()
in my data having values like 22.9() and 1.9(mg/dl).
i want to remove only () in 22.9() not in 1.9()
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Please open a new thread and describe your problem there.
This thread is 3 years old 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
can you please tell me how can i open new thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Go to the Communities Home Page and hit "Ask a Question".
But BEFORE you do this, study this article closely to get you started. Do not skip this.