BookmarkSubscribeRSS Feed
tommy81
Obsidian | Level 7
Hi ,

Please could somebody share with links of materials which would help build
complex excel based reports from sas.

Actually wat i need to create is a report with multiple layers of hedings and rows
in the same page with aggregations , etc..
3 REPLIES 3
Peter_C
Rhodochrosite | Level 12
have a look at
"ODS MARKUP: The SAS Reports You've Always Dreamed Of (.pdf)" at http://support.sas.com/rnd/base/ods/odsmarkup/p85-30_020205.pdf and appreciate that there have been some significant improvements since then.
Explore http://support.sas.com/rnd/base/ods/
Cynthia_sas
SAS Super FREQ
Hi:
I don't know what you mean by "multiple layers of headings and rows", however, ODS MARKUP, specifically, TAGSETS.EXCELXP will create multi-sheet Excel workbooks which allows extensive control over print headings and print footers and also allow multiple tables to be placed together in one sheet. In addition TAGSETS.EXCELXP allows you to freeze Excel column headers for easier "scrolling" of long tables and allows you to turn on autofilter. This all works because TAGSETS.EXCELXP creates Spreadsheet Markup Language XML which is the Microsoft specification for Office 2003 XML.

In addition, you can create HTML output using ODS HTML, ODS MSOFFICE2K or ODS TAGSETS.TABLEEDITOR. While most HTML methods will not give you multi-sheet workbooks, you can do different types of workbooks with HTML-based methods. TAGSETS.TABLEEDITOR, in particular embeds JavaScript in the HTML tags so that you can build pivot tables, for example. Pretty cool stuff.

The link that Peter gave you is the place to start. Also using a Google search to find user group papers, such as this one:
http://www.nesug.org/proceedings/nesug08/ap/ap06.pdf

might also be helpful.

cynthia

Also, since you have previously posted of using Web Report Studio and the BI Platform, please keep in mind that not all of these destinations' output will work with the SAS Add-in for Microsoft Office. For example, TAGSETS.EXCELXP type of XML is not an output type that would be respected by the Add-in for Microsoft Office or Web Report Studio.
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

In the past when I needed to create an Excel report that contained aggregated results I found the DDE process with put '09'x worked well.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1249 views
  • 0 likes
  • 4 in conversation