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

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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