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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1031 views
  • 1 like
  • 4 in conversation