Little sas Book Lora D Delwiche and Susan J. Slaughter ssas
sasI SAS Publishing he ittle sas Book r r R D T Lora D. Delwiche and Susan. Slaughter The power to know
a primer THIRD EDITION The Little SAS® Book Lora D. Delwiche and Susan J. Slaughter
The correct bibliographic citation for this manual is as follows: Delwiche, Lora D. and Slaughter, Susan J, 2003. The Little SAS Book: A Primer, Third Edition. Cary, NC: SAS Institute Inc The Little SAS Book: A Primer. Third Edition Copyright 2003, SAS Institute Inc, Cary, NC, USA ISBN1-59047-333-7 All rights reserved. Produced 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 this software and related documentation by the U.S. government is subject to the agreement with SAs Institute and the restrictions set forth in FAR 52.227-19, Commercial Computer Software-Restricted Rights (June 1987) SAS Institute Inc, SAS Campus Drive, Cary, North Carolina 27513 st printing, November 2003 SAS Publishing provides a complete selection of books and electronic products to help customers use SAs software to its fullest potential. For more information about our e-books, e-learning products, CDs, and hard- copy books, visit the SAs Publishing Web site at support. sas. com/pubs or call 1-800-727-3228 SAS and all other SAs Institute Inc product or service names are registered trademarks or trademarks of SAs nstitute Inc in the USA and other countries. indicates USA registration. Other brand and product names are trademarks of their respective companie
The correct bibliographic citation for this manual is as follows: Delwiche, Lora D. and Slaughter, Susan J., 2003. The Little SAS Book: A Primer, Third Edition. Cary, NC: SAS Institute Inc. The Little SAS Book: A Primer, Third Edition Copyright © 2003, SAS Institute Inc., Cary, NC, USA ISBN 1-59047-333-7 All rights reserved. Produced 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 this software and related documentation by the U.S. government is subject to the Agreement with SAS Institute and the restrictions 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, November 2003 SAS Publishing provides a complete selection of books and electronic products to help customers use SAS software to its fullest potential. For more information about our e-books, e-learning products, CDs, and hardcopy books, visit the SAS Publishing Web site at support.sas.com/pubs or call 1-800-727-3228. 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
CONTENTS Acknowledgments Introducing SAS Software x About this book xi Whats New xiv Chapter 1 Getting Started Using SAS Software 1.1 The SAS Language 2 1.2 SAS Data Sets 4 1.3 The Two Parts of a SAS Program 6 1.4 The DATA Steps Built-in Loop 8 1.5 Choosing a Mode for Submitting SAS Programs 10 1.6 Windows and Commands in the SAS Windowing Environment 12 Submitting a Program in the SAs Windowing Environment 14 1.8 Reading the SAS Log 16 1.9 Viewing Your Results in the Output Window 18 1.10 Creating HTML Output 20 1.11 SAS Data Libraries 22 1.12 Viewing Data Sets with SAS Explorer 24 1.13 Using SAS System Options 26 Chapter 2 Getting Your Data into SAS 2.1 Methods for Getting Your Data into SAS 2.2 Entering Data with the Viewtable Window 2.3 Reading Files with the Import Wizard 34 4 Telling sas where to Find Your Raw Data 36 6 Reading Raw Data Arranged in Columns 40
CONTENTS Acknowledgments ix Introducing SAS Software x About This Book xi What’s New xiv Chapter 1 Getting Started Using SAS Software 1.1 The SAS Language 2 1.2 SAS Data Sets 4 1.3 The Two Parts of a SAS Program 6 1.4 The DATA Step’s Built-in Loop 8 1.5 Choosing a Mode for Submitting SAS Programs 10 1.6 Windows and Commands in the SAS Windowing Environment 12 1.7 Submitting a Program in the SAS Windowing Environment 14 1.8 Reading the SAS Log 16 1.9 Viewing Your Results in the Output Window 18 1.10 Creating HTML Output 20 1.11 SAS Data Libraries 22 1.12 Viewing Data Sets with SAS Explorer 24 1.13 Using SAS System Options 26 Chapter 2 Getting Your Data into SAS 2.1 Methods for Getting Your Data into SAS 30 2.2 Entering Data with the Viewtable Window 32 2.3 Reading Files with the Import Wizard 34 2.4 Telling SAS Where to Find Your Raw Data 36 2.5 Reading Raw Data Separated by Spaces 38 2.6 Reading Raw Data Arranged in Columns 40