Doing More with Report Writing |
When you create a report, you can select Subset data in the report windows to limit the number of rows that are processed to create the report. This feature is especially useful when your final report is very long, and you want to use a limited number of rows for testing before producing the final report.
In this section, you limit the number of rows to five for a listing report of the CLASS table.
Additional Information |
For additional information on writing reports, refer to the "Report Writing" and "Using the Report Engine" chapters in Getting Started with SAS/ASSIST, and Doing More with the Report Engine.
Instructions |
To display the List a Table window, follow this selection path:Tasks Report Writing Listing
List a Table Window
Select Subset data. The Subset Data window appears.
Subset Data Window
Select Restrict Rows. The Restrict Rows window appears.
Restrict Rows Window
In the Number of rows to process field, type 5 as the number of rows you want to use for the listing report.
The default for the Number of rows to process field is MAX, which includes all the rows in the table. To reset the field to its default value, select Reset.
Select OK, then Goback to return to the List a Table window.
To run the report, follow this selection path:Run SubmitThe listing report appears with only five rows.
CLASS Listing Report with Restricted Rows
Return to SAS/ASSIST software from the OUTPUT window. See Returning to SAS/ASSIST Windows from the Output Window for more information.
Follow this selection path from the List a Table window to save the source code for the report. You use the saved source code in the next section.File Save as sourceThe Save As window appears.
In the Description field, type CLASS report - restricted rows and select OK. A message appears to inform you that the source code was successfully saved.
For more information on saving and editing source code, refer to the "Saving Source Code for Editing and Re-execution" chapter in Getting Started with SAS/ASSIST.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.