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
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 lock in 2025 pricing—just $495!
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.