The SAS Output Delivery System and reporting techniques

URL in spanned headers of proc report

Reply
Regular Contributor
Regular Contributor
Posts: 166

URL in spanned headers of proc report

Hi all,

I it possible to provide a url to my spanned headers on proc report .

A sample code is as below

proc report data = sashelp.class;
columns ("character" name sex) ("numeric" age height weight);
run;

i want a url to be added to the heders "character" & "numeric". is this possible.

Please do guide.
Super User
Posts: 10,046

Re: URL in spanned headers of proc report

[pre]

proc format;
value $ fmt
'character','numeric'='www.sas.com'
;
run;
ods html file='c:\temp\certain_order.html' style=sasweb;

proc report data = sashelp.class style(header)={url=$fmt.} nowd;
columns ("character" name sex) ("numeric" age height weight);
run;
ods html close;
[/pre]



Or


[pre]







ods html file='c:\temp\certain_order.html' style=sasweb;
ods escapechar='~';
proc report data = sashelp.class nowd;
columns ("~S={url='www.sas.com'} character" name sex) ("~S={url='www.sas.com'} numeric" age height weight);
run;
ods html close;
[/pre]


Ksharp Message was edited by: Ksharp
Regular Contributor
Regular Contributor
Posts: 166

Re: URL in spanned headers of proc report

Thank a ton... This helps a lot....
Ask a Question
Discussion stats
  • 2 replies
  • 195 views
  • 0 likes
  • 2 in conversation