i want to take out last name from given string
data have;
length a $200.;
input a;
datalines;
;
run;
output
yadav
dhoni
kumari
@aanan1417 wrote:
sorry typing error
I don't believe e-mail addresses can have spaces, and so you need to address that, and provide rules given that restriction
Please explain the rules you followed to determine the output of the first line is yadav.
I specifically asked for the rules that let you know how to figure out what the last name is. Without rules, we can't write a program.
There is no space in the names in your input data.
E-mail addresses cannot have spaces.
@aanan1417 wrote:
sorry typing error
I don't believe e-mail addresses can have spaces, and so you need to address that, and provide rules given that restriction
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.