Hi, researchers.
I would like to substring a person's name from a description.
It seems to have a rule like XXX will become, XXX will step.
Therefore, how do I substring person's name before will?
data have;
input x $50.;
cards;
A Barr Dolan will become
A Brooke Seawell will step
Aharon Schwartz will become
Maureen F Morrison will become
Matthew Bilunas will become
;
run;
Output Want
Text Name
A Barr Dolan will become A Barr Dolan
A Brooke Seawell will step A Brooke Seawell
Aharon Schwartz will become Aharon Schwartz
Thanks in advance.