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.

    Columns in Report

    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.

    Use Column Labels as Column Headings

    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.

    List Data Title

    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.

    Exclude Date and Page Number

    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.

Data Listing

Figure 6.10: Data Listing

Previous | Next | Top of Page