Sample 38516: Including a link to all data in a SAS® Web Report Studio report with group breaks on separate pages
Overview
If you display group breaks on separate pages, then report viewers can use the Table of Contents to display results for each distinct value of a category. However, the Table of Contents does not automatically include a link that enables viewers to display all of the query results at one time. This sample shows you how to edit your data so that you can include such a link. To create the table used in this sample, you can use the code on the Full Code tab.
This sample uses an information map that was created using the data set SASHELP.CLASS. SAS Web Report Studio 4.2 was used to create this sample. This sample can also be used for SAS Web Report Studio 3.1.
Basic steps
- In SAS® Management Console, use the Data Library Manager to register the modified table. For this sample, the table CLASSAGEGROUP is registered.
- Use SAS® Information Map Studio to create an information map based on the modified table.
- Create the report in SAS Web Report Studio, using the new data item (Groupage) as the group break value.
View the results
To view images of the SAS Web Report Studio report, click the Results tab.
Additional Documentation
For more information about SAS Web Report Studio, see the SAS Web Report Studio documentation page.
For more information about SAS Information Map Studio, see the SAS Information Map Studio documentation page.
For more information about SAS Management Console, see the SAS Management Console documentation page.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
Before submitting this code, edit the LIBNAME statement to use your site-specific physical location.
/* Create a new data set called classagegroup using SASHELP.CLASS */
LIBNAME test BASE "c:\data";
data test.classagegroup;
length groupage $3;
set sashelp.class (in=a) sashelp.class(in=b);
if a then groupage=put(age,$3.);
if b then groupage="all";
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
Here is how your report might appear.


If you display group breaks on separate pages, then report viewers can use the Table of Contents to display results for each distinct value of a category. This sample shows you how to edit your data so that you can also include a link that lets viewers display all of the query results at one time.
Date Modified: | 2010-02-09 10:31:56 |
Date Created: | 2010-01-27 11:24:50 |
Operating System and Release Information
SAS System | SAS Web Report Studio | Microsoft® Windows® for x64 | 4.2 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 4.2 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 4.2 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Standard Edition | 4.2 | | 9.2 TS2M0 | |
Microsoft Windows XP Professional | 4.2 | | 9.2 TS2M0 | |
Windows Vista | 4.2 | | 9.2 TS2M0 | |
64-bit Enabled AIX | 4.2 | | 9.2 TS2M0 | |
64-bit Enabled Solaris | 4.2 | | 9.2 TS2M0 | |
HP-UX IPF | 4.2 | | 9.2 TS2M0 | |
Linux for x64 | 4.2 | | 9.2 TS2M0 | |
Solaris for x64 | 4.2 | | 9.2 TS2M0 | |