Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Creating Reports

Example: Create a Listing Report

Open the Fitness Data Set

In this example, you use the Fitness data set as the basis of your listing report. To open the Fitness data set, follow these steps:

  1. Select Tools arrow Sample Data ...
  2. Select Fitness.
  3. Click OK to create the sample data set in your Sasuser directory.
  4. Select File arrow Open By SAS Name ...
  5. Select Sasuser from the list of Libraries.
  6. Select Fitness from the list of members.
  7. Click OK to bring the Fitness data set into the data table.

Specify Report Columns

To list maximum pulse, resting pulse, and average running pulse for each age, follow these steps:

  1. Select Reports arrow List Data ...
  2. Select maxpulse, rstpulse, and runpulse and click on the Print button to include these variables in the report.
  3. Select age and click on the Id button to make age the Id variable.

    c0606.gif (5189 bytes)

    Figure 6.6: Columns in Report

Specify Report Options

To designate options such as column headings, follow these steps:

  1. Click on the Options button in the List Data dialog.
  2. In the General tab, select Column labels under Use as column headings.

    c0607.gif (5588 bytes)

    Figure 6.7: Use Column Labels as Column Headings

  3. Click OK to save your changes.

Specify Report Titles

To specify the titles to be displayed in your report, follow these steps:

  1. In the List Data dialog, click on the Titles button to specify your report titles.
  2. In the List Data tab, type Heart Rates According to Age in the first field.

    c0608.gif (4141 bytes)

    Figure 6.8: List Data Title

  3. If you have not already done so, type Fitness Report in the first field in the Global tab.
  4. Click on the Settings tab. Deselect Include date and Include page numbers so that the current date and page number are not printed on your report.

    c0609.gif (3623 bytes)

    Figure 6.9: Exclude Date and Page Number

  5. Click OK to save your title changes.

Generate a Data Listing

To generate a data listing of the columns that you have chosen, click OK in the List Data dialog.

c0610.gif (10599 bytes)

Figure 6.10: Data Listing

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.