SAS 9.4 Companion for Windows, Fifth Edition
Total Page:16
File Type:pdf, Size:1020Kb
SAS® 9.4 Companion for Windows, Fifth Edition SAS® Documentation July 16, 2021 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS® 9.4 Companion for Windows, Fifth Edition. Cary, NC: SAS Institute Inc. SAS® 9.4 Companion for Windows, Fifth Edition Copyright © 2016, SAS Institute Inc., Cary, NC, USA All Rights Reserved. Produced in the United States of America. For a hard copy book: 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. For a web download or e-book: Your use of this publication shall be governed by the terms established by the vendor at the time you acquire this publication. The scanning, uploading, and distribution of this book via the Internet or any other means without the permission of the publisher is illegal and punishable by law. Please purchase only authorized electronic editions and do not participate in or encourage electronic piracy of copyrighted materials. Your support of others' rights is appreciated. U.S. Government License Rights; Restricted Rights: The Software and its documentation is commercial computer software developed at private expense and is provided with RESTRICTED RIGHTS to the United States Government. Use, duplication, or disclosure of the Software by the United States Government is subject to the license terms of this Agreement pursuant to, as applicable, FAR 12.212, DFAR 227.7202-1(a), DFAR 227.7202-3(a), and DFAR 227.7202-4, and, to the extent required under U.S. federal law, the minimum restricted rights as set out in FAR 52.227-19 (DEC 2007). If FAR 52.227-19 is applicable, this provision serves as notice under clause (c) thereof and no other notice is required to be affixed to the Software or documentation. The Government’s rights in Software and documentation shall be only those set forth in this Agreement. SAS Institute Inc., SAS Campus Drive, Cary, NC 27513-2414 July 2021 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 trademarks of their respective companies. 9.4-P10:hostwin Contents About This Book . ix What's New in the SAS 9.4 Windows Companion . xv PART 1 Running SAS under Windows 1 Chapter 1 / Getting Started under Windows . 3 SAS: Exploiting the Power of Windows . 4 Starting SAS . 6 Files Used by SAS . 27 Submitting SAS Code . 41 Interrupting Your SAS Session . 44 Running Windows or MS-DOS Commands from within SAS . 45 Terminating a SAS Process . 49 Ending Your SAS Session . 50 Chapter 2 / Interacting with SAS under Windows . 51 Overview of the SAS Interface . 52 Working within Your SAS Session . 55 Customizing Your SAS Session . 78 Accessing Online Help and Documentation . 97 Chapter 3 / Using the SAS Editors under Windows . 103 Using the Enhanced Editor . 104 Using the Program Editor . 135 Chapter 4 / Using SAS Files under Windows . 145 Introduction to SAS Files . 146 Multi Engine Architecture . 150 Using Data Libraries . 152 Accessing SAS Files from Multiple SAS Sessions . 165 Using SAS Files from Other Versions with SAS 9.4 for Windows . 166 Using SAS 9.4 Files with Previous Releases . 171 Using Remote Host SAS Files in SAS 9.4 . 171 Reading BMDP, OSIRIS, and SPSS Files . 172 Transferring SAS Files between Operating Environments . 176 Accessing Database Files with SAS/ACCESS Software . 176 Using the SAS ODBC Driver to Access SAS Data from Other Applications . 177 Chapter 5 / Using External Files under Windows . 179 About External Files . 180 Referencing External Files . 180 Accessing External Files with SAS Statements . 192 Accessing External Files with SAS Commands . 195 iv Contents Advanced External I/O Techniques . 197 Chapter 6 / Managing SAS Output under Windows . 201 Printing . 202 Routing Procedure Output to a Web Browser . 218 Routing Procedure Output and the SAS Log to a File . 221 Using the SAS Logging Facility to Write Log Messages . 224 Producing Graphics . 224 Chapter 7 / Performance Considerations under Windows . 237 Hardware Considerations . 237 Windows Features That Optimize Performance . 239 SAS Features That Optimize Performance . 244 Network Performance Considerations . 245 Sasiotest Utility . 246 Advanced Performance Tuning Methods . 246 PART 2 Using SAS with Other Windows Applications Chapter 8 / Using Windows System Tools with SAS under Windows . 253 Introduction to Using Windows System Tools with SAS . 254 Event Viewer Application Log . 254 Performance Tools . 258 Starting SAS as a Windows Service . 264 Chapter 9 / Using OLE in SAS/AF Software under Windows . 275 About OLE . 276 SAS/AF Catalog Compatibility . 276 Inserting an OLE Object in a FRAME Entry . 277 Editing an OLE Object within a FRAME Entry . 281 Invoking OLE Verbs . 282 Using Linked OLE Objects . 283 Converting OLE Objects . 284 Automating OLE Objects and Applications . 286 Using OLE Custom Controls (OCXs) in Your SAS/AF Application . 293 Chapter 10 / Controlling SAS from Another Application Using OLE . 303 Introduction to Automating SAS . 303 Creating an Instance of SAS . 304 Getting Feedback from the SAS Session . 304 Examples of Automating SAS with OLE . 305 Methods and Properties for Use with a SAS OLE Automation Object . 307 Dictionary . ..