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;
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:
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
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.