BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have a column with incoming url link. How can I get the domain name from the url using SAS

The data in the column looks like

http://bookmarks.yahoo.com/pages/fid/788?b=1&orderby=title&sort=ASC&savestate=1

If I just need "bookmarks.yahoo.com" in the column how could i use SAS to do it.

Thanks for your help!
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Use the SCAN function in a DATA step to pick-off the third parsed sub-field, while having the "/" listed as the delimiter.

Scott Barry
SBBWorks, Inc.

SCAN Function
http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000214639.htm

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

Creating Custom Steps in SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 969 views
  • 0 likes
  • 2 in conversation