BookmarkSubscribeRSS Feed
ADN
Fluorite | Level 6 ADN
Fluorite | Level 6

Hi, 

 

It is possible to create a clickable hyperlink like the one below in Excel in SAS VA 7.4 in a list table (Instead of the user double clicking on a row to open the link).

 

Excel_Hyperlink.JPG

2 REPLIES 2
koyelghosh
Lapis Lazuli | Level 10

@ADN Yes you can do it as long as you know what is the web address for each company. In the code below I have assumed address for Yahoo is https://www.Yahoo.com and so on. Below is the code and the output. Please change it to suit your requirement. The result should be Test.html in your folder.

 

DATA Have;
	INPUT CompanyName $30.;
	DATALINES;
	Yahoo
	Google
	Microsoft
	;
RUN;
DATA WANT;
	SET Have;
	Hyperink='<a  href="https://www.'||TRIM(CompanyName)||'.com">'||TRIM(CompanyName)||'</a>';
RUN;
ODS HTML BODY="Test.html";
PROC PRINT DATA=WANT;
RUN;
ODS HTML CLOSE;

OutputOutput

ADN
Fluorite | Level 6 ADN
Fluorite | Level 6
Hi, Thanks for the solution. But I am actually looking for the same report in SAS VA and not as html.

sas-innovate-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

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