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
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;
Show us a few examples. Show us the code you tried.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.