Chapter Contents |
Previous |
Next |
Getting Started with the SAS System Using SAS/ASSIST Software |
Dynamic reports enable you to set up a report and then drill down to view more details of the report.
Creating the AIRLINE Sample Tables |
sampltab
in these examples. See the SAS companion for your operating environment, or contact the SAS Software Consultant at your site
if you do not know how to perform this step.
Note: The name
sampltab
that we use in these examples is the physical file or directory name. Do not confuse this name with the libname, which you will specify in a later
step.
File | Open object... |
SAMPLSAS Source Code
* libname &library "&sysjobid..sas.assist.sampltab";You may need to scroll further down to find this line. This line is the LIBNAME statement that SAS software uses to assign a libref to a physical file or directory. For more information on librefs, see SAS Data Libraries.
Operating Environment | Example |
---|---|
OS/390 | libname &library "userid.assist.sampltab"; |
CMS | libname &library "SAMPLTAB FILE A"; |
OpenVMS | libname &library "DEVICE:[SAMPLTAB]"; |
UNIX | libname &library "/u/userid/assist/sampltab"; |
OS/2 or Windows | libname &library "C:\assist\sampltab"; |
Run | Submit |
AIRLINE Sample Table Statistics
Note: The Airline
libref is assigned for the duration of your current SAS session only. The next time you invoke the SAS System and SAS/ASSIST software, you will need to assign the libref again by following the
directions in Using SAS/ASSIST Software to Assign a New Libref. Alternatively, you can specify that the Airline libref be automatically defined, each time you invoke the SAS
System, by assigning the libref in the SAS Explorer window. See the online help for
the SAS Explorer window for details.
Creating the Report |
AIRLINE.MARCH
and then press ENTER in the Report Engine window's Data field.
Column No. | Usage | Column Header |
---|---|---|
1 | GROUP | Flight |
2 | ACROSS | Date |
3 | GROUP | Time |
4 | SUM | |
5 | SUM | Freight |
6 | SUM | Boarded |
7 | SUM | Transfer |
8 | SUM | Non-pay |
9 | SUM | Deplane |
10 | GROUP | Capacity |
The usages for the columns create a drill-down report that shows the sum of the mail, freight, number of passengers boarded, number of passengers transferred, number of nonpaying passengers, and the number of disembarked passengers. Each of the columns can be shown by flight number, departure time, capacity, and date. The column headers have been shortened so that they fit in the Dynamic Report window buttons.
DRILL
in the Report field, and then press ENTER.
Run | Submit |
Dynamic Report Window
Information by Flight Number
The figures for nonpaying passengers and deplaned passengers do not initially appear. If the report has more columns than can be displayed in the window, the scroll buttons (the small buttons below the eight analysis buttons) contain arrows to indicate the availability of additional columns. Select the right-arrow button to see columns to the right. Each time you select a scroll button, one new column appears.
Information by Date for Flight 202
Capacity Information for Flight 202 on March 5, 1994
File | Close |
Exiting This Task |
When you are ready to return to the WorkPlace menu or move on to another task, follow the directions in Exiting a Task.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.