BookmarkSubscribeRSS Feed
2 REPLIES 2
Tom
Super User Tom
Super User

It usually helps if you actually include a description of your question in the body of your post.

For example:

  • what is the name of the variable that has the email address
  • Can you show some example values you have and what you want to get from them?
  • I assume by %40 you actual just mean the @ character that separates the username (mailbox name) from the server name?

If you just have one address in the string then I would suggest using SCAN() function.

data want;
  set have;
  hostname = scan(email,2,'@');
run;

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 411 views
  • 0 likes
  • 2 in conversation