BookmarkSubscribeRSS Feed
phoenix27
Calcite | Level 5

How do I put links on the first proc print page footnote to link to other proc prints? Like Link1 (which takes me to proc print with Route1)

 

ods html file="C:\Documents and Settings\test.html";
proc print data=sasuser.cargorev N noobs;
title1 "Data of Cargo Rev";
footnote1 ????
run;
proc print data=sasuser.cargorev N noobs;
title1 "Data of Route 1";
where Route="Route1";
run;
proc print data=sasuser.cargorev N noobs;
title1 "Data of Route 2";
where Route="Route2";
run;
proc print data=sasuser.cargorev N noobs;
title1 "Data of Route 3";
where Route="Route3";
run;
proc print data=sasuser.cargorev N noobs;
title1 "Data of Route 4";
where Route="Route4";
run;
proc print data=sasuser.cargorev N noobs;
title1 "Data of Route 5";
where Route="Route5";
run;
proc print data=sasuser.cargorev N noobs;
title1 "Data of Route 6";
where Route="Route6";
run;
ods html close;

1 REPLY 1
Cynthia_sas
Diamond | Level 26

Hi:

  It's not clear to me whether you want 1 HTML file with all the PROC PRINTS in the file or whether you want multiple HTML files with a link to each file in the footnote. ODS HTML supports the use of FRAME= and CONTENTS= that may be what you want:

frame_nav.png

 

Or, you could use NEWFILE=PROC to make a separate file for each PROC PRINT output and then use the LINK= option in the TITLE or FOOTNOTE statement to link the separate files together.

 

But, given that you have all your PROC PRINTs in 1 ODS "sandwich", it implies that you only want 1 file with all the proc print output in the file, in which case, the FRAME= and CONTENTS= might be a good option.

 

Cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 664 views
  • 0 likes
  • 2 in conversation