- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 07-27-2020 06:21 AM
(1087 views)
Hi,
I'm doing some data cleansing and i have few words which act as a delimiter. I tried to get the data between two delimiters(Words) and i wasn't able to succeed.
I used SCAN function where i cant use string/word as a delimiter. any suggestions/solutions are appreciated.
Thank you.
Regards,
Gokul SHIVANANDA
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
How about PRX?
data have(keep=string newstring);
string = "one two three four five six";
r = prxparse("/one (.*) five/");
p = prxmatch(r, string);
newstring = prxposn(r, 1, string);
run;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Show us a few examples. Show us the code you tried.
--
Paige Miller
Paige Miller