Step-by-Step Programming with Base SAS Software
Original Publication Date: 2007-Dec-31
Included in the Prior Art Database: 2015-Sep-17
SAS Institute Inc.
Page 01 of 776
Step-by-Step Programming with Base SAS®Software
Page 02 of 776
The correct bibliographic citation for this manual is as follows: SAS Institute Inc., Step-by-Step Programming with Base SAS® Software, Cary, NC: SAS Institute Inc., 2001.
Step-by-Step Programming with Base SAS® Software
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA.
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, May 2001
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, CD-ROM, hard copy books, and Web-based training, visit the SAS Publishing Web site at www.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.
IBM® and all other International Business Machines Corporation product or service names are registered trademarks or trademarks of International Business Machines Corporation in the USA and other countries.
Oracle® and all other Oracle Corporation product or service names are registered trademarks or trademarks of Oracle Corporation in the USA and other countries.
Other brand and product names are registered trademarks or trademarks of their respective companies.
Page 03 of 776
4 What Is the SAS System? 3
P A R T 1 Introduction to the SAS System 1
Components of Base SAS Software 4
Output Produced by the SAS System 8
Ways to Run SAS Programs 11
Running Programs in the SAS Windowing Environment 13 Review of SAS Tools 15
Learning More 16
P A R T 2 Getting Your Data into Shape 17
4 Introduction to DATA Step Processing 19
The SAS Data Set: Your Key to the SAS System 20 How the DATA Step Works: A Basic Introduction 26 Supplying Information to Create a SAS Data Set 33 Review of SAS Tools 40
Learning More 41
4 Starting with Raw Data: The Basics 43
Examine the Structure of the Raw Data: Factors to Consider 44 Reading Unaligned Data 44
Reading Data That Is Aligned in Columns 47
Reading Data That Requires Special Instructions 50
Reading Unaligned Data with More Flexibility 53
Mixing Styles of Input 55
Review of SAS Tools 58
Learning More 59