Programming Statements

Module Definition and Execution

Modules are used for two purposes:

A module always begins with a START statement and ends with a 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

Previous Page | Next Page | Top of Page