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
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
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.