SAS 9.1.3 Language Reference Concepts
Original Publication Date: 2004-Dec-31
Included in the Prior Art Database: 2015-Sep-18
SAS Institute Inc.
Page 01 of 656
Language Reference: Concepts
Page 02 of 656
The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS ® 9.1.3 Language Reference: Concepts. Cary, NC: SAS Institute Inc.
SAS® 9.1.3 Language Reference: Concepts
Copyright © 2004, 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, August 2004
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 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.
Page 03 of 656
4 Essential Concepts of Base SAS Software 3
What Is SAS? 3
Overview of Base SAS Software 4
Components of the SAS Language 4
Ways to Run Your SAS Session 7
Customizing Your SAS Session 9
Conceptual Information about Base SAS Software 10
4 SAS Processing 11
Definition of SAS Processing 11
Types of Input to a SAS Program 12 The DATA Step 13
The PROC Step 14
4 Rules for Words and Names in the SAS Language 15 Words in the SAS Language 15
Names in the SAS Language 18
4 SAS Language Elements 23
What Are the SAS Language Elements? 25 Data Set Options 25
Formats and Informats 27
Functions and CALL Routines 38
ARM Macros 55
SAS System Options 71
4 SAS Variables 77
Definition of SAS Variables 78
SAS Variable Attributes 78
Ways to Create Variables 80
Variable Type Conversions 84
Aligning Variable Values 85
Automatic Variables 85
SAS Variable Lists 86
Dropping, Keeping, and Renaming Variables 88 Numeric Precision in SAS Software 90
4 Missing Values 101
Definition of Missing Values 101
P A R T 1 SAS System Concepts 1
Page 04 of 656
Special Missing Values 102
Order of Missing Values 103