BookmarkSubscribeRSS Feed
whymath
Lapis Lazuli | Level 10

When using SAS code to add a hyperlink to a cell in report and the report is shown in HTML output, which is the default destination of SAS 9.4, I can click the hyperlink and jump to another webpage, just like what I do in web browser.

For example:

 

data surfing;
  input website $ 1-42;
  cards;
  Bing
  SAS Studio
  SAS Community
  Regex
  Robert's SAS Gallery
  ;
run;

proc format;
  value $url
  "Bing"="http://www.bing.com"
  "SAS Studio"="https://welcome.oda.sas.com"
  "SAS Community"="https://communities.sas.com/"
  "Regex"="https://regex101.com/"
  "Robert's SAS Gallery"="https://robslink.com/SAS/Home.htm"
  ;
run;

title "My bookmarks";
proc report data=surfing;
  column website;
  define website/style(column)={url=$url. flyover=$url.};
run;
title;

In the result viewer:

 

whymath_0-1756260265963.png

When I click on "Robert's SAS Gallery":

whymath_3-1756260696319.png

Here are several findings as I continue trying this method:

1. It seems the internal browser of SAS result viewer has a very old version, many webpage couldn't be open or display normally, try Regex;

2. Even the webpage can be opened, it is very easily for me to see "Script Error" windows just pop up;

3. When using EG or SAS Studio, I cann't jump to another webpage by clicking on a hyperlink;

 

How do you think of this method and the issues?

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 0 replies
  • 241 views
  • 0 likes
  • 1 in conversation