BookmarkSubscribeRSS Feed
NN
Quartz | Level 8 NN
Quartz | Level 8
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.
4 REPLIES 4
Ksharp
Super User
[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
sasuser_8
Obsidian | Level 7
Hello,
Is there a way to do the 2nd example in an ods excel?

 

ballardw
Super User

@sasuser_8 wrote:
Hello,
Is there a way to do the 2nd example in an ods excel?

 


Suggestion: Start your own thread, mention this one (copy and paste URL of the page), provide some example of your data, as data step code, and your Proc Report using that data.

 

Data as a data step is so everyone sees the same thing and we have something to test code with. Your report code is so it easier to show exactly where you would change things. Best would also be how you intend to have the output sent to Excel. There are several methods and different options are available for each.

The text boxes, opened using the </> icon, are best for code or log entries as they prevent the main message windows from reformatting text. Basic questions and description text should be in the window.

NN
Quartz | Level 8 NN
Quartz | Level 8
Thank a ton... This helps a lot....

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1057 views
  • 1 like
  • 4 in conversation