Chapter 28 Saving and Printing Tables. Chapter Table of Contents SAVING AND PRINTING TABLES AS OUTPUT OBJECTS OUTPUT OBJECTS...

Similar documents
APPENDIX 2 Customizing SAS/ASSIST Software

Chapter 3 Managing Results in Projects. Chapter Table of Contents

Chapter 27 Saving and Printing Graphics

Chapter 23 Animating Graphs. Chapter Table of Contents ANIMATING SELECTION OF OBSERVATIONS ANIMATING SELECTED GRAPHS...347

Data Representation. Variable Precision and Storage Information. Numeric Variables in the Alpha Environment CHAPTER 9

Introduction. LOCK Statement. CHAPTER 11 The LOCK Statement and the LOCK Command

Formats. Formats Under UNIX. HEXw. format. $HEXw. format. Details CHAPTER 11

Chapter 25 Editing Windows. Chapter Table of Contents

External Files. Definition CHAPTER 38

Using Data Transfer Services

Graphics. Chapter Overview CHAPTER 4

Routing the SAS Log and SAS Procedure Output

Using Cross-Environment Data Access (CEDA)

Chapter 2 User Interface Features. networks Window. Drawing Panel

Permission Program. Support for Version 6 Only. Allowing SAS/SHARE Client Access to SAS Libraries or Files CHAPTER 40

Storing and Reusing Macros

SAS/ASSIST Software Setup

Chapter 6 Creating Reports. Chapter Table of Contents

Chapter 25 PROC PARETO Statement. Chapter Table of Contents. OVERVIEW SYNTAX SummaryofOptions DictionaryofOptions...

Overview. CHAPTER 2 Using the SAS System and SAS/ ASSIST Software

Using the SQL Editor. Overview CHAPTER 11

Tasks Menu Reference. Introduction. Data Management APPENDIX 1

Data Set Options. Specify a data set option in parentheses after a SAS data set name. To specify several data set options, separate them with spaces.

Alternative ODS HTML Statements for Running Examples in Different Operating Environments

SAS I/O Engines. Definition. Specifying a Different Engine. How Engines Work with SAS Files CHAPTER 36

Informats. Informats Under UNIX. HEXw. informat. $HEXw. informat. Details CHAPTER 13

CHAPTER 13 Importing and Exporting External Data

Creating and Executing Stored Compiled DATA Step Programs

Choosing the Right Procedure

Chapter 41 SAS/INSIGHT Statements. Chapter Table of Contents

APPENDIX 4 Migrating from QMF to SAS/ ASSIST Software. Each of these steps can be executed independently.

Macro Facility. About the Macro Facility. Automatic Macro Variables CHAPTER 14

SAS File Management. Improving Performance CHAPTER 37

SAS Web Infrastructure Kit 1.0. Overview

CREATING THE DISTRIBUTION ANALYSIS

CHAPTER 7 Using Other SAS Software Products

The EXPLODE Procedure

SAS Catalogs. Definition. Catalog Names. Parts of a Catalog Name CHAPTER 32

Examples That Use Remote Objecting

The GTESTIT Procedure

Introduction. CHAPTER 3 Working in the SAS Windowing Environment

SAS Support for TELNET on Windows

DBLOAD Procedure Reference

Changes and Enhancements

SAS Drug Development 3.3_03. December 14, 2007

Routing Output. Producing Output with SAS Software CHAPTER 6

from the source host, use the FTP put command to copy a file from the source host to the target host.

QUEST Procedure Reference

The correct bibliographic citation for this manual is as follows: SAS Institute Inc Proc EXPLODE. Cary, NC: SAS Institute Inc.

CHAPTER 7 Examples of Combining Compute Services and Data Transfer Services

The GSLIDE Procedure. Overview. About Text Slides CHAPTER 27

SAS Simulation Studio 14.1: User s Guide. Introduction to SAS Simulation Studio

UNIX Platform Error Messages

Introduction to MDDBs

SAS Data Integration Studio 3.3. User s Guide

SCL Arrays. Introduction. Declaring Arrays CHAPTER 4

OpenVMS Operating Environment

SAS. IT Service Level Management 2.1: Migration Documentation

Locking SAS Data Objects

Optimizing System Performance

OS/2: SPX Access Method

Using Unnamed and Named Pipes

Installation Instructions for SAS/ACCESS Interface to SAP BW

OS/390 Platform Examples

Enterprise Miner Software: Changes and Enhancements, Release 4.1

Chapter 14 Introduction to the FACTEX Procedure

SAS Marketing Operations Management 6.0 R14 Update 2

Windows: SPX Access Method

Using SAS Files. Introduction CHAPTER 5

SAS Structural Equation Modeling 1.3 for JMP

Handling Exceptions. Introduction. Using the Program Halt Handler CHAPTER 10

SAS Universal Viewer 1.3

Customizing Your SAS Session

Chapter 28 Command Reference. Chapter Table of Contents TSVIEW COMMAND FORECAST COMMAND

10 The First Steps 4 Chapter 2

Licensing SAS DataFlux Products

Using MDP Extensions. What Is the Multidimensional Data Provider? CHAPTER 3

SAS Workflow Manager 2.2: Administrator s Guide

SAS Model Manager 2.2. Tutorials

Introduction. Understanding SAS/ACCESS Descriptor Files. CHAPTER 3 Defining SAS/ACCESS Descriptor Files

Chapter 13 Multivariate Techniques. Chapter Table of Contents

UNIX Spawner Program. Starting the UNIX Spawner Program CHAPTER 36

Chapter 15 Mixed Models. Chapter Table of Contents. Introduction Split Plot Experiment Clustered Data References...

Changes and Enhancements

SAS Drug Development. SAS Macro API 1.3 User s Guide

Chapter 23 Introduction to the OPTEX Procedure

The SERVER Procedure. Introduction. Syntax CHAPTER 8

SAS Web Report Studio 3.1

Using Dynamic Data Exchange

DATA Step Debugger APPENDIX 3

SAS Data Libraries. Definition CHAPTER 26

Batch Importing. Overview CHAPTER 4

SAS/STAT 13.1 User s Guide. The NESTED Procedure

Chapter 7 File Access. Chapter Table of Contents

SAS Web Infrastructure Kit 1.0. Overview, Second Edition

The G4GRID Procedure. Introduction APPENDIX 1

SAS/FSP 9.2. Procedures Guide

SAS 9.2 Foundation Services. Administrator s Guide

SAS/STAT 13.1 User s Guide. The Power and Sample Size Application

SAS Clinical Data Integration 2.4

Transcription:

Chapter 28 Saving and Printing Tables Chapter Table of Contents SAVING AND PRINTING TABLES AS OUTPUT OBJECTS...418 OUTPUT OBJECTS...422 415

Part 2. Introduction 416

Chapter 28 Saving and Printing Tables SAS/INSIGHT software uses the Output Delivery System (ODS) to save tables. Thus you can save and print analysis tables to keep records of your SAS/INSIGHT session. You can also save tables as SAS data sets to use them as input for further analysis. Figure 28.1. Output Tables 417

Part 2. Introduction Saving and Printing Tables as Output Objects SAS/INSIGHT software saves and prints tables using the Output Delivery System. The Output Delivery System enables you to save tables as output objects. You can edit and manipulate output objects using the OUTPUT procedure, and you can save output objects as text files, catalogs, or SAS data sets. =) Invoke SAS/INSIGHT software, create analyses, and select any tables of interest. To select tables, drag a rectangle across the tables or click on their edges. If you have no tables selected, you will save or print all tables in the window. Figure 28.2. Tables Selected =) Choose File:Save:Tables. 418

Chapter 28. Saving and Printing Tables as Output Objects File Edit Analyze Tables Graphs Curves Vars Help New Open... Save Print... Print setup... Print preview End Data... Graphics Catalog... Graphics File... Tables Initial Tables Statements Options Figure 28.3. File:Save Menu =) From the Program Editor menu, select View:Results to create the Results Window. File Edit View Tools Run Solutions Help Program Editor Log Output Graph Results Explorer Contents Only My Favorite Folders Figure 28.4. View Menu Figure 28.5. Results Window 419

Part 2. Introduction =) Selecting the name of a table in the results window displays that table in the Output window. You can save all tables at the creation of each analysis by choosing File:Save:Initial Tables. This menu is a toggle; choosing it again turns off the automatic saving of tables. File Edit Analyze Tables Graphs Curves Vars Help New Open... Save Data... Print... Print setup... Print preview End Graphics Catalog... Graphics File... Tables Initial Tables Statements Options Figure 28.6. File:Save Menu Also, each table has a pop-up menu to save just that table. Click on the menu button at the upper left of the table to display the pop-up menu. Format Save Figure 28.7. Table Pop-up Menu Saving tables to the Output Delivery System converts your tables to output objects. Variables in output objects have names derived from the table headers. Where conflicts occur, a new unique name is generated. Variables in the output object are assigned formats derived from the tables. You can send the contents of the Output window to a file or printer by choosing File:Print in the Output window. On many hosts, the SAS System is installed so that this menu sends the contents of the Output window to a default printer. You can also choose this menu to save the window contents to a file and later route them to a printer using appropriate host commands. 420

Chapter 28. Saving and Printing Tables as Output Objects File Edit View Tools Solutions Help New Open... Open Object... Save Save As... Save As Object... Import Data... Export Data... Print Setup... Print Preview... Print utilities Print Send Mail... Close Figure 28.8. File Menu Alternatively, you can redirect SAS System output from the Output window to a text file by using the PRINTTO procedure. For more information on printing from the Output window, refer to the SAS companion for your host. For more information on PROC PRINTTO, refer to the SAS Procedures Guide. 421

Part 2. Introduction Output Objects By default, tables are saved in text format. It is also possible to save SAS/INSIGHT tables as SAS data sets, or in other formats such as HTML. For example, the following steps illustrate how to create a data set from the Moments table in a distribution analysis. =) In the Program Editor, submit the following ODS command: ods output Moments = MOMENTS; This command instructs ODS to create a SAS data set called MOMENTS from a table named Moments. =) Create a Moments table. One way to do this is to open the DRUG data set, select the CHANG BP variable, and select Analyze:Distribution ( Y ) to obtain a distribution analysis. The Moments table is generated by default. =) Open the MOMENTS data set. Select File:Open, and look under the WORK library. Select the MOMENTS data set and click Open. y Note: You can find out the name of any table created in SAS/INSIGHT. To do this, submit the following ODS command in the Program Editor prior to creating the table. ods trace output; When you create a table, the name of that table is printed to the Log window. You can also redirect all of your SAS/INSIGHT tables to an HTML file. Prior to creating any tables, submit an ODS command such as ods html body="tables.htm"; Any tables you now save are written as HTML. When you are finished saving tables, submit the ODS command ods html close; To view the table s values, select View:Results from the Program Editor menu. Then select the name of a table to view. For more information on the Output Delivery System, refer to the chapter on Using the Output Delivery System in the SAS/STAT User s Guide or refer to The Complete Guide to the SAS Output Delivery System. 422

The correct bibliographic citation for this manual is as follows: SAS Institute Inc., SAS/ INSIGHT User s Guide, Version 8, Cary, NC: SAS Institute Inc., 1999. 752 pp. SAS/INSIGHT User s Guide, Version 8 Copyright 1999 by SAS Institute Inc., Cary, NC, USA. ISBN 1 58025 490 X All rights reserved. Printed in the United States of America. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, or otherwise, without the prior written permission of the publisher, SAS Institute Inc. U.S. Government Restricted Rights Notice. Use, duplication, or disclosure of the software by the government is subject to restrictions as set forth in FAR 52.227 19 Commercial Computer Software-Restricted Rights (June 1987). SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513. 1st printing, October 1999 SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are registered trademarks or trademarks of their respective companies. The Institute is a private company devoted to the support and further development of its software and related services.