Order of Resolution for Functions and Subroutines

The SAS/IML language resolves functions in the following order:

  1. Functions built into SAS/IML software

  2. User-defined SAS/IML modules that exist in the current environment

  3. Function in the STORAGE library, if it is open

  4. SAS DATA step functions

  5. Functions in the IMLMLIB library

The SAS/IML language resolves subroutines that are called by using the CALL statement in the following order:

  1. Subroutines built into SAS/IML software

  2. User-defined SAS/IML modules that exist in the current environment

  3. Subroutines in the STORAGE library, if it is open

  4. SAS DATA step subroutinesa

  5. Subroutines in the IMLMLIB library

The SAS/IML language resolves subroutines that are called by using the RUN statement in the following order:

  1. User-defined SAS/IML modules that exist in the current environment

  2. Subroutines in the STORAGE library, if it is open

  3. Calls that are built into SAS/IML software

  4. SAS DATA step subroutines

  5. Subroutines in the IMLMLIB library