Hi:
What is your destination of interest, RTF, PDF, HTML? When do you mean by "popup" -- a popup Word doc, a popup window, a flyover window, a new HTML page?
What code have you tried? What procedures are you using? There are several ways to create hyperlinks in SAS and then to generate links for "drill-down" from a summary report to a detail report, for example. Here's one Forum posting, with code: https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/td-p/103086 and here's another with a PDF example that is a bit different: https://communities.sas.com/t5/ODS-and-Base-Reporting/links-with-PDF-destination/td-p/62869 .
Cynthia
i am looking for html format. a link at the end of the report. onclick should open popup window with dataset.(sh1.deployments)
ods html body='ttest.htm' style=HTMLBlue;
proc report data=sh1.deployments;
run;
ods html close;
ods _all_ close;
ods html body='ttest.htm'
style=HTMLBlue;
title2 j=l height = 14 pt link="ttest.htm/";
ods html close;
ods html;
Hi:
I am confused because your BODY= option is creating TTEST.HTM in BOTH of the ODS HTML statement but your LINK= is pointing to the SAME file TTEST.HTM -- that doesn't make sense to me.
This works for me:
Notice how 2 separate files are created: detail.htm and master.htm. Notice that the detail.htm file (yellow) has a link to master.htm (blue). And notice also that master.htm, the summary file, (blue) has a link to detail.htm(yellow).
It would not work if all the links referred to "detail.htm" or "master.htm".
You should be able to try my code to see how it works. It just uses sashelp.class.
Cynthia
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.