Hi,
can any one help me out on this
one datastet is there with names column
names
ramesh S/o bhoomareddy
w/o ramesh
sony d/o suresh
ramesh alias don
so from this i want to retrive name before special characters like S/o, W/o, alias
Thanks in advance
Hello,
For you use special names, you have to put it inside single commas and N at the end.
Ex: 'rammesh S/o bhoomareddy'n.
Here is an example with your names.
data teste;
'ramesh S/o bhoomareddy'n = 1;
'w/o ramesh'n = 2;
'sony d/o suresh'n = 3;
'ramesh alias don'n = 4;
run;
proc sql;
select 'w/o ramesh'n from teste;
quit;
Tell me if it works !
Regards,
Kassim
It would help if you provide the way you want the resulting file to look.
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!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.