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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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