Prev: SAS and dates
Next: Data Cleaning with SAS
From: Andrew Z. on 31 Mar 2010 17:00 I use ODS HTML with PROC TABULATE, PROC PRINT, and PROC REPORT. At the bottom of the HTML I want a link to an external page. I've tried various methods, but none work. I use SAS 9.1.3 SP4 on Windows XP SP3. Example below data foo; input x; datalines; 1 ; run; ods escapechar='^'; ods listing close; ods html ; footnote "<a href='http://www.sas.com'>This link works when there is no extra text</a>"; footnote2 "When there is extra, non-link text like this <a href='http://www.sas.com'>it breaks the hyperlink</a>"; footnote3 "But I prefer to have a page footer because footnotes may be shown multiple times per page"; proc tabulate data=foo; class x; table x; run; proc print data=foo; run; /* Because this only shows once per page, it would be perfect if the link worked */ ods html text='^S={URL="http://www.example.com"}This text is positioned nicely but there is no link'; ods html close; ods listing;
From: Chris Jones on 1 Apr 2010 08:50 On 31 Mar, 22:00, "Andrew Z." <ahz...(a)gmail.com> wrote: > I use ODS HTML with PROC TABULATE, PROC PRINT, and PROC REPORT. At > the bottom of the HTML I want a link to an external page. I've tried > various methods, but none work. I use SAS 9.1.3 SP4 on Windows XP > SP3. Example below > > data foo; > input x; > datalines; > 1 > ; > run; > > ods escapechar='^'; > ods listing close; > ods html ; > > footnote "<a href='http://www.sas.com'>This link works when there is > no extra text</a>"; > footnote2 "When there is extra, non-link text like this <a > href='http://www.sas.com'>it breaks the hyperlink</a>"; > footnote3 "But I prefer to have a page footer because footnotes may be > shown multiple times per page"; > > proc tabulate data=foo; > class x; > table x; > run; > > proc print data=foo; > run; > > /* Because this only shows once per page, it would be perfect if the > link worked */ > ods html text='^S={URL="http://www.example.com"}This text is > positioned nicely but there is no link'; > > ods html close; > ods listing; Wrap your <a ...> </a> tags in <div> </div> tags - same applies in titles, group vars, etc. e.g. footnote "<div><a href='link.htm'>My link</a></div>" ;
From: Chris Jones on 1 Apr 2010 08:53 On 1 Apr, 13:50, Chris Jones <chris...(a)gmail.com> wrote: > On 31 Mar, 22:00, "Andrew Z." <ahz...(a)gmail.com> wrote: > > > > > > > I use ODS HTML with PROC TABULATE, PROC PRINT, and PROC REPORT. At > > the bottom of the HTML I want a link to an external page. I've tried > > various methods, but none work. I use SAS 9.1.3 SP4 on Windows XP > > SP3. Example below > > > data foo; > > input x; > > datalines; > > 1 > > ; > > run; > > > ods escapechar='^'; > > ods listing close; > > ods html ; > > > footnote "<a href='http://www.sas.com'>This link works when there is > > no extra text</a>"; > > footnote2 "When there is extra, non-link text like this <a > > href='http://www.sas.com'>it breaks the hyperlink</a>"; > > footnote3 "But I prefer to have a page footer because footnotes may be > > shown multiple times per page"; > > > proc tabulate data=foo; > > class x; > > table x; > > run; > > > proc print data=foo; > > run; > > > /* Because this only shows once per page, it would be perfect if the > > link worked */ > > ods html text='^S={URL="http://www.example.com"}This text is > > positioned nicely but there is no link'; > > > ods html close; > > ods listing; > > Wrap your <a ...> </a> tags in <div> </div> tags - same applies in > titles, group vars, etc. e.g. > > footnote "<div><a href='link.htm'>My link</a></div>" ;- Hide quoted text - > > - Show quoted text - Correction - wrap the whole footnote string in the <div> tags, not just the <a> </a>.
|
Pages: 1 Prev: SAS and dates Next: Data Cleaning with SAS |