RUN Statement
executes statements in a module
- RUN <name>
<(arguments)>;
The inputs to the RUN statement are as follows:
- name
- is the name of a user-defined module or an IML built-in subroutine.
- arguments
- are arguments to the subroutine.
Arguments can be both local and global.
The RUN statement executes a user-defined module
or invokes PROC IML's built-in subroutines.
The resolution order for the RUN statement is
- A user-defined module
- An IML built-in function or subroutine
This resolution order need only be considered if you have defined
a module that has the same name as an IML built-in subroutine.
If a RUN statement cannot be resolved at
resolution time, a warning is produced.
If the RUN statement is still unresolved when
executed and a storage library is open at the time,
IML attempts to load a module from that storage.
If no module is found, then the program is
interrupted and an error message is generated.
By default, the RUN statement tries to run the module named MAIN.
You will usually want to supply both a name and arguments, as in
run myf1(a,b,c);
See Chapter 5, "Programming Statements," for further details.
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.