Hi All,
I'm trying to remove middle initials at the end of a name IF it has a middle initial (some names don't have middle initial in the dataset).
What I have:
Name
Doe, John M.
Doe, Jane
What I'd like:
Name
Doe, John
Doe, Jane
I've seen some different approaches, and it seems as though a substr(scan()) may be the best approach, I'm just not sure how to apply it.
I tried the below code, but it removed everything after the first space.
Name = substr(Name,1,length(Name) - length(scan(Name,-1,' ')));
... View more