SAS 9 Language Reference Concepts
Original Publication Date: 2002-Dec-31
Included in the Prior Art Database: 2015-Sep-18
SAS Institute Inc.
Page 01 of 717
Language Reference Concepts
Page 02 of 717
The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2002. SAS ® 9 Language Reference: Concepts. Cary, NC: SAS Institute Inc.
SAS® 9 Language Reference: Concepts
Copyright © 2002 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, June 2002
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 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 717
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 6
Customizing Your SAS Session 8
Conceptual Information about Base SAS Software 9
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 Data Set Options 23
Definition of Data Set Option 23
Syntax for Data Set Options 23
Using Data Set Options 24
Data Set Options by Category 25
4 Formats 27
Definition of a Format 27
Syntax of a Format 28
Using Formats 28
Byte Ordering for Integer Binary Data on Big Endian and Little Endian Platforms 31 Data Conversions and Encodings 32
Working with Packed Decimal and Zoned Decimal Data 33
International Date and Datetime Formats 37
European Currency Conversion 42
Formats by Category 44