SAS® Component Language 9.1 Reference
Original Publication Date: 2004-Dec-31
Included in the Prior Art Database: 2015-Sep-18
SAS Institute Inc.
Page 01 of 848
SAS® Component Language 9.1
Page 02 of 848
The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS ® Component Language 9.1: Reference, Volumes 1 and 2. Cary, NC: SAS Institute Inc.
SAS® Component Language 9.1: Reference, Volumes 1 and 2
Copyright © 2004, 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, January 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 848
P A R T 1 SCL Fundamentals 1
Chapter 1 Introduction 3
Introduction to SCL 3
SCL Elements 3
Entering SCL Code 4
Compiling SCL Programs 4
Testing SCL Applications 6
Debugging SCL Programs 6
Saving SCL Programs 6
Optimizing the Performance of SCL Code 6
Using Other SAS Software Features in SCL Programs 7 SCL Compatibility Issues 8
Chapter 2 The Structure of SCL Programs 9
Introduction to SCL Program Structure 9
Using Labeled Sections in SCL Programs 10
Defining Classes in SCL Programs 12
Defining and Using Methods in SCL Programs 13
USECLASS Blocks in SCL Programs 14
Defining Interfaces in SCL Programs 14
Using Macros in SCL Programs 15
Chapter 3 SCL Fundamentals 17
Introduction to SCL Fundamentals 18
SCL Data Types 18
Names in SCL 21
SCL Keywords 22
SCL Variables 22
SCL Constants 26
SCL Operators 28
SCL Expressions 31
SCL Statements 32
SCL Comments 33
SCL Functions 34
SCL CALL Routines 34
Passing Arguments to SCL Functions and CALL Routines 34
Rules for SCL Statements 36
Chapter 4 SCL Arrays 37
Introduction to SCL Arrays 37
Page 04 of 848
Declaring Arrays in SCL Programs 37
Referencing Array Elements in SCL Programs 38
Initializing the Elements of a Static Array in SCL Programs 39
Creating and Initializing Dynamic Arrays in SCL Programs 40
Resizing Dynamic Arrays in SCL Programs 41