Step by Step Programming with Base SAS Software
Original Publication Date: 2001-Dec-31
Included in the Prior Art Database: 2015-Sep-19
SAS Institute Inc.
Page 01 of 788
Step-by-Step Programming with
Base SAS® Software
Page 02 of 788
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
Copyright © 2001 by 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.
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
2nd printing, March 2007
3rd printing, March 2008
1st electronic printing, March 2008
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/publishing 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 788
4 What Is the SAS System? 3
P A R T 1 Introduction to the SAS System 1
Introduction to the SAS System 3
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
Introduction to DATA Step Processing 20
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 41
Learning More 41
4 Starting with Raw Da...