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 has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 481 views
  • 0 likes
  • 2 in conversation