Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Programming Statements

Modules

Modules are used for

A module always begins with the START statement and ends with the FINISH statement. Modules can be thought of as being either functions or subroutines. When a module returns a single parameter, it is called a function and is executed as if it were a built-in IML function; a function is invoked by its name in an assignment statement rather than in a CALL or RUN statement. Otherwise, a module is called a subroutine, and you execute the module in either the RUN statement or the CALL statement.


Defining and Executing a Module

Nesting Modules

Understanding Symbol Tables

Modules with No Arguments

Modules with Arguments

More about Argument Passing

Module Storage

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.