LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 6 Sep 2007 12:51:49 -0500
Reply-To:   "data _null_;" <datanull@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "data _null_;" <datanull@GMAIL.COM>
Subject:   ODS HTML to XL using proc report.
Content-Type:   text/plain; charset=ISO-8859-1

I want to create an "XL" spread sheet that has some fancy header info. Using PROC REPORT as below I can achieve the desired output. This example uses technique I learn here on SAS-L. Using HTML and giving filetype XLS to the output file.

But, I would also like to have each level of AGE begin a different SHEET. So I have a TAB for every level of AGE.

I could get a similar result with XL libname engine or PROC EXPORT but I want the fancy columns headers that PROC REPORT produces.

Can it be done?

title; ods listing close; ods noresults; ods html file="class.xls"; proc report nowd data=sashelp.class; column ('Other spanning' age name ('vital statistics' Height weight)); define age / group noprint; define name / order; define height / display; define weight / display; break before age / page; compute before _page_; line 'Some spanning text'; line 'AGE=' age 5.; endcomp; run; quit; ods html close;


Back to: Top of message | Previous page | Main SAS-L page